Triggering Page Break Only When Exporting Report from Preview to Excel

Stimulsoft Reports.NET discussion
Post Reply
creaselogger
Posts: 1
Joined: Wed Sep 24, 2025 2:39 am

Triggering Page Break Only When Exporting Report from Preview to Excel

Post by creaselogger »

Hi everyone,

We are exporting a report to Excel directly from the Preview window, and there is a requirement to trigger an additional page break only during the export process, not when viewing the report in Preview.

I have tried using this.IsExporting and checking it in different page-related events, but it doesn’t seem to work as expected.

Could you please confirm whether:

the report is recompiled when exporting from the Preview window, or

the export uses exactly the layout that is already rendered in Preview?

Any guidance or recommended approach would be greatly appreciated.

Thank you.
Lech Kulikowski
Posts: 7587
Joined: Tue Mar 20, 2018 5:34 am

Re: Triggering Page Break Only When Exporting Report from Preview to Excel

Post by Lech Kulikowski »

Hello,

In this case, you need to add your changes, then rerender the report and only after these changes export it.

Thank you.
Attachments
Preview_notExport.mrt
(5.32 KiB) Downloaded 3 times
Post Reply