Page.IsExported

Stimulsoft Reports.NET discussion
Post Reply
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

Page.IsExported

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Page.IsExported

Post 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.
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

Page.IsExported

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Page.IsExported

Post 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.
Post Reply