Fit to page difference after updating to new version
Fit to page difference after updating to new version
I updated the dlls from 2024.2 to 2026.1.2 and noticed the PDF rendering is not fitting to printable area anymore.
I use report.ExportDocument(Pdf, path/to/file.pdf, settings);
The settings are imageQuality=1 and imageResolutionMode=Auto
The pdf before had some margin even if we used all the page area.
Now the bowser's preview starts with fit to printable area enabled, but it doesn't fit.
If I change to another scale (for example to custom) and then back to fit to printable area it works fine, but I need to do this every time.
It changed something in the various versions? I didn't find anything related to this in the release notes.
Here is a template report which does the problem
I use report.ExportDocument(Pdf, path/to/file.pdf, settings);
The settings are imageQuality=1 and imageResolutionMode=Auto
The pdf before had some margin even if we used all the page area.
Now the bowser's preview starts with fit to printable area enabled, but it doesn't fit.
If I change to another scale (for example to custom) and then back to fit to printable area it works fine, but I need to do this every time.
It changed something in the various versions? I didn't find anything related to this in the release notes.
Here is a template report which does the problem
Soft System srl
-
Lech Kulikowski
- Posts: 7655
- Joined: Tue Mar 20, 2018 5:34 am
Re: Fit to page difference after updating to new version
Hello,
Your report is empty. Please send us a sample that we can run and reproduce the issue.
Thank you.
Your report is empty. Please send us a sample that we can run and reproduce the issue.
Thank you.
Re: Fit to page difference after updating to new version
The report is empty but the header and the footer which are cut when printing with the current size.
Soft System srl
-
Lech Kulikowski
- Posts: 7655
- Joined: Tue Mar 20, 2018 5:34 am
Re: Fit to page difference after updating to new version
Hello,
How to reproduce the issue with your empty report?
Thank you.
How to reproduce the issue with your empty report?
Thank you.
Re: Fit to page difference after updating to new version
I attached an edited report with borders and writings
Also 2 images which shows the problem
And the PDF files printed with the 2 different versions
Soft System srl
-
Lech Kulikowski
- Posts: 7655
- Joined: Tue Mar 20, 2018 5:34 am
Re: Fit to page difference after updating to new version
Hello,
Please try to use the following option:
Stimulsoft.Report.Export.StiPdfExportService.PrintScaling = true;
Thank you.
Please try to use the following option:
Stimulsoft.Report.Export.StiPdfExportService.PrintScaling = true;
Thank you.
Re: Fit to page difference after updating to new version
Hello, it seem to work fine when printing a PDF directly and printing from preview/designer
Thank you
Thank you
Soft System srl