此示例显示如何选择 表查看器主题。要从代码创建和显示查看器,您需要调用StiViewerFx.initialize()静态方法。
下载Stimulsoft Reports Flex最新版本
此示例显示如何选择 表查看器主题。要从代码创建和显示查看器,您需要调用StiViewerFx.initialize()静态方法。在应用程序的initialize事件中调用此方法:
<mx:Application xmlns_mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768" backgroundColor="#e8e8e8" initialize="onInitialize()" xmlns_viewer="stimulsoft.viewer.*">
private function onInitialize(): void{ StiViewerFx.initialize(); ...}
要更改 表查看器主题,您只需为StiThemeManager.theme静态属性指定新值,例如StiTheme.black值。完成此操作后,您可以显示查看器:
private function onSetBlackThemeClick(): void{ // Set Black theme StiThemeManager.theme = StiTheme.black;}private function onShowViewerClick(): void{ // Create new report object var report: StiReport = new StiReport(); // Load document from XML string report.loadDocumentFromString(documentString); // Show report in Viewer report.showDialog();}
下面的屏幕截图中,您可以看到示例代码的结果。

下载示例
购买Stimulsoft正版授权,请点击“咨询在线客服”哟!

标签: 表 表控件Stimulsoft
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!