Page 1 of 1
Page.IsExported
Posted: Mon Nov 05, 2007 9:23 am
by Stéphane
Hello,
I would like to know if a page was printed or exported. With the IsPrinted property of the StiPage class, I know if a page was printed or not. But, is it possible to know if the page was exported or not ?
Cordially,
Kakone.
Page.IsExported
Posted: Tue Nov 06, 2007 9:46 am
by Edward
You can subscribe to the following events for deciding were exporting of the Page or not:
Report.Exporting - occurs during the exporting process.
Report.Exported - occurs after the export is finished.
In the build from November, 6 we've added a new IsExporting property to StiPage. This property could be used to control whether the page is being exported or not.
Also you can use the following static events:
StiOptions.Engine.GlobalEvents.ReportExported
StiOptions.Engine.GlobalEvents.ReportExporting
Thank you.
Page.IsExported
Posted: Wed Nov 07, 2007 3:03 am
by Stéphane
Hello,
I'm not agree with the IsExporting property of the StiPage. When the user clicks on the export button, the property IsExporting is set to true for all pages of the report even the user will print one or a few pages.
I would like to know (if it's possible) which pages was really exported.
Cordially,
Kakone.
Page.IsExported
Posted: Thu Nov 08, 2007 1:17 am
by Edward
The reason of the such a behavior when exporting is processed, lies in the fact that Printing is done in one pass but while Export is processed, then at least 2 passes will be done, sometimes even more. Exporting is much more complicated process.
Thank you.