Fit to page difference after updating to new version

Stimulsoft Reports.WEB discussion
Post Reply
r.bianco
Posts: 90
Joined: Thu Oct 27, 2016 2:06 pm

Fit to page difference after updating to new version

Post by r.bianco »

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
Template_vert.mrt
(10.47 KiB) Downloaded 7 times
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

Post by Lech Kulikowski »

Hello,

Your report is empty. Please send us a sample that we can run and reproduce the issue.

Thank you.
r.bianco
Posts: 90
Joined: Thu Oct 27, 2016 2:06 pm

Re: Fit to page difference after updating to new version

Post by r.bianco »

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

Post by Lech Kulikowski »

Hello,

How to reproduce the issue with your empty report?

Thank you.
r.bianco
Posts: 90
Joined: Thu Oct 27, 2016 2:06 pm

Re: Fit to page difference after updating to new version

Post by r.bianco »

I attached an edited report with borders and writings
Template_vert.mrt
(14.42 KiB) Downloaded 5 times
Also 2 images which shows the problem
report_1.png
report_1.png (64.79 KiB) Viewed 152 times
report_2.png
report_2.png (77.18 KiB) Viewed 152 times
And the PDF files printed with the 2 different versions
Preview_2024.pdf
(60.36 KiB) Downloaded 8 times
Preview_2026.pdf
(60.2 KiB) Downloaded 7 times
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

Post by Lech Kulikowski »

Hello,

Please try to use the following option:
Stimulsoft.Report.Export.StiPdfExportService.PrintScaling = true;

Thank you.
r.bianco
Posts: 90
Joined: Thu Oct 27, 2016 2:06 pm

Re: Fit to page difference after updating to new version

Post by r.bianco »

Hello, it seem to work fine when printing a PDF directly and printing from preview/designer
Thank you
Soft System srl
Post Reply