Page 1 of 1

Report Margins ignored by browser

Posted: Thu Aug 27, 2020 11:44 am
by alex.coles
I am printing labels that need to be lined up to specific items on the paper, and have set up report margins on the page and in the displayed report and PDF printing these are honoured, however when you try and print to a printer the left hand margin is being completely ignored.

I can add a custom margin to the print dialogue which corrects it, but we need it to be correctly positioned when the margin is set to none on the browser as we cannot be changing the margin in the print dialogue manually every time we want to print these labels. How can we force the browser to honour the left hand margin?

Re: Report Margins ignored by browser

Posted: Thu Aug 27, 2020 2:05 pm
by Lech Kulikowski
Hello,

Due to security reasons, it is not possible to set any printer settings in the Print dialog. It is the browser limitation.

Thank you.

Re: Report Margins ignored by browser

Posted: Thu Aug 27, 2020 2:10 pm
by alex.coles
In case anyone else has this issue, I solved it by setting:
options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Pdf;
This forces the print to respect the margins correctly, by treating it as a PDF.

Re: Report Margins ignored by browser

Posted: Fri Aug 28, 2020 7:49 am
by Andrew
Hello Alex,

Thank you for sharing your way of soliving the issue.