Page 1 of 1

Possibility to set pdf export options

Posted: Wed Jul 17, 2024 8:36 am
by ericwheeler
Hello,
We currently have a report that has so many columns that when we create a pdf each page is split. This leads to incorrect formatting. According to the Stimulsoft support team we might be able to prevent this by using the option StiOptions.Export.Pdf.DivideSegmentPages=false.

Is there any way to set this option using the extension?
Thanks in advance!

Re: Possibility to set pdf export options

Posted: Wed Jul 17, 2024 3:43 pm
by Lech Kulikowski
Hello,

What extension do you mean?

Thank you.

Re: Possibility to set pdf export options

Posted: Thu Sep 05, 2024 1:31 am
by terassda
To set the StiOptions.Export.Pdf.DivideSegmentPages = false option in Stimulsoft, you need to configure this setting programmatically before generating the report as a PDF. Depending on how you're using Stimulsoftsnow rider 3d (whether in a web app, desktop app, or another platform), you would typically adjust this setting through code.
  • Locate the export options in your code: You need to set the export option just before you export the report as a PDF.
  • Set the DivideSegmentPages Option to false:

Code: Select all

// Import the necessary Stimulsoft namespaces
using Stimulsoft.Report;
using Stimulsoft.Report.Export;

// Load your report
StiReport report = new StiReport();
report.Load("YourReport.mrt");

// Set the PDF export option to prevent page splitting
StiOptions.Export.Pdf.DivideSegmentPages = false;

// Render the report
report.Render(false);

// Export to PDF
report.ExportDocument(StiExportFormat.Pdf, "YourReport.pdf");

Re: Possibility to set pdf export options

Posted: Thu Sep 05, 2024 7:22 am
by Lech Kulikowski
Hello,

Thank you for sharing your experience with other users.

Re: Possibility to set pdf export options

Posted: Fri Jun 20, 2025 4:20 am
by Anthona
I looked at your code and replaced it a bit but it can't work.drive mad
I don't know where I went wrong :|

Code: Select all

// Import required Stimulsoft namespaces
using Stimulsoft.Report;
using Stimulsoft.Report.Export;

// Create a new instance of the report
StiReport report = new StiReport();
report.Load("YourReport.mrt");

// Configure PDF export settings to avoid segment page splitting
StiOptions.Export.Pdf.DivideSegmentPages = false;

// Render the report without saving to the document
report.Render(false);

// Export the report as a PDF file
report.ExportDocument(StiExportFormat.Pdf, "YourReport.pdf");

Re: Possibility to set pdf export options

Posted: Fri Jun 20, 2025 1:48 pm
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.