Page 1 of 1

Setting Top and Left Margin at Runtime for PDF

Posted: Wed Sep 20, 2023 7:17 pm
by compuaid
We have a situation where we need to allow users to print W-2s on IRS pre-printed and approved paper. We would like to be able to offer users the option to modify the top and left margins of the PDF report at runtime to make minor adjustments to where the fields land on the form depending on their printer.

Is there a way in JavaScript to adjust the report top and left margins before the report renders?

Re: Setting Top and Left Margin at Runtime for PDF

Posted: Thu Sep 21, 2023 7:18 am
by Lech Kulikowski
Hello,

You can set these properties from the code.
https://www.stimulsoft.com/en/samples/r ... -from-code

Thank you.

Re: Setting Top and Left Margin at Runtime for PDF

Posted: Tue Sep 26, 2023 3:25 pm
by compuaid
Lech - I looked at the code in the sample but what I want to do is take a report that we create in the Designer and then allow the user to modify the top and left margins at runtime to shift the entire report slightly left or right and up or down so that their individual printer aligns the text boxes with the pre-printer form.

Re: Setting Top and Left Margin at Runtime for PDF

Posted: Wed Sep 27, 2023 9:44 pm
by Lech Kulikowski
Hello,

Unfortunately, in the JS version, it is not possible.

Thank you.