回复 1楼ehecd的帖子
有一个callback回调函数,可以试试这个:
Syntax: export(exportType,callback,saveAsDialog,settings)Void
- Parameters:
- exportType: Specifies export format.
- callback: Function that is invoked once the export result is available (its Url is passed in the callback).
- saveAsDialog: Indicates whether the save as dialog should be shown immediately once the export result is ready.
- settings: The export settings, vary for each export type.
- Example:
- viewer.export('Word', function ()
- {
- console.log('export callback');
- }, true, {
- FileName: 'Document.doc'
- })
- Return Value: Void
复制代码
参考技术文档路径:
ActiveReports 8 > ActiveReports User Guide > Getting Started > Viewing Reports > ActiveReports and the Web > Using the HTML5 Viewer > Working with HTML5 Viewer using Javascript |