翻譯|使用教程|編輯:王香|2018-09-14 10:33:20.000|閱讀 424 次
概述:本文主要講解在Stimulsoft中如何以從右到左模式顯示報(bào)表查看器。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷(xiāo)售中 >>
相關(guān)鏈接:
【下載Stimulsoft Reports.Ultimate最新版本】
此示例顯示如何以從右到左模式顯示報(bào)表查看器。將StiOptions.Viewer.RightToLeft選項(xiàng)設(shè)置為StiRightToLeftType.Yes值就足夠了。這可以在應(yīng)用程序初始化方法中完成:
public Form1() { StiOptions.Viewer.RightToLeft = StiRightToLeftType.Yes; // // Required for Windows Form Designer support // InitializeComponent(); }
在Form1_Load事件中,加載報(bào)表并連接到XML數(shù)據(jù):
private void Form1_Load(object sender, System.EventArgs e) { if (File.Exists("..\\..\\Data\\Demo.xsd"))dataSet1.ReadXmlSchema("..\\..\\Data\\Demo.xsd"); else MessageBox.Show("File \"Demo.xsd\" not found"); if (File.Exists("..\\..\\Data\\Demo.xsd"))dataSet1.ReadXml("..\\..\\Data\\Demo.xml"); else MessageBox.Show("File \"Demo.xml\" not found"); dataSet1.DataSetName = "Demo"; stiReport1.RegData(dataSet1); if (File.Exists("..\\..\\Reports\\BookmarksHyperlinks.mrt"))stiReport1.Load("..\\..\\Reports\\BookmarksHyperlinks.mrt"); else MessageBox.Show("File \"BookmarksHyperlinks.mrt\" not found"); stiReport1.Load("..\\..\\Reports\\BookmarksHyperlinks.mrt"); stiReport1.Render(true); stiReport1.Info.Zoom = panel1.Zoom; if (stiReport1.CompiledReport != null) stiReport1.CompiledReport.Info.Zoom = panel1.Zoom; panel1.Refresh(); }
示例代碼的結(jié)果如下圖所示:
購(gòu)買(mǎi)Stimulsoft正版授權(quán),請(qǐng)點(diǎn)擊“”喲!
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn