Page 1 of 1

PDF preview differ from print preview

Posted: Thu Jan 04, 2024 10:45 am
by samet
Hello
I have a question. I have a project where I use Angular on the front-end and .NET on the back-end, and I want to print a report in this project. When I want to save this report as PDF, it appears normally, but when I want to print the report, some information on the page shifts to the next page. I can make it smooth when I reduce the scale value on the print screen, but I do not want this.
How can I ensure that the information in the report fits on the page without reducing the scale value?

Re: PDF preview differ from print preview

Posted: Thu Jan 04, 2024 7:09 pm
by Lech Kulikowski
Hello,

Please provide more information - report, screenshots, etc. for analysis.

Thank you.

Re: PDF preview differ from print preview

Posted: Fri Jan 05, 2024 8:02 am
by samet
I realized there was something in the problem that I needed to fix. There is no problem on the Report Preview screen, but when I want to save it as PDF and print it, some information moves to the next page.
Below you can first see the report preview screen.(photo 1 )
photo 1
photo 1
Report-preview.png (97.57 KiB) Viewed 2677 times
The screenshot below is the situation that occurs when I want to save the report as pdf using the print button. (photo 2)
photo 2
photo 2
pdf.png (153.81 KiB) Viewed 2677 times
Also, I have the same problem when I want to print the report. (photo 3 )
photo 3
photo 3
print.png (155.08 KiB) Viewed 2677 times
I do not want the 'Report ID' value to slide down to the other page and unnecessary pages to be created for this reason. How can I fix this problem without changing the scale value?

Re: PDF preview differ from print preview

Posted: Fri Jan 05, 2024 12:44 pm
by Lech Kulikowski
Hello,

Please try to decrease margins.
It is the feature of the browser printing, it is not possible to provide any printer settings in the browser print dialog from code (browser security limitations), you should set it the same as in the report annually.

Thank you.

Re: PDF preview differ from print preview

Posted: Thu Jan 11, 2024 7:00 am
by samet
Hello,
You have stated that it is not possible to provide any printer settings from the code due to browser security limitations. However, when I want to print a multi-page invoice report sample from designer.stimulsoft.com or download this report in PDF format, I do not encounter a problem such as the information shifting to the next page. I think there may be any solution other than reducing margins.
print2.png
print2.png (161.51 KiB) Viewed 2251 times
report3.png
report3.png (151.71 KiB) Viewed 2251 times
If it is a browser-related problem, shouldn't I get the same error for the report above that I want to print from designer.stimulsoft.com?

Re: PDF preview differ from print preview

Posted: Thu Jan 11, 2024 1:55 pm
by Lech Kulikowski
Hello,

Please send us your report with test data that reproduces the issue for analysis.

Thank you.