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?
Setting Top and Left Margin at Runtime for PDF
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Setting Top and Left Margin at Runtime for PDF
Hello,
You can set these properties from the code.
https://www.stimulsoft.com/en/samples/r ... -from-code
Thank you.
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
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.
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Setting Top and Left Margin at Runtime for PDF
Hello,
Unfortunately, in the JS version, it is not possible.
Thank you.
Unfortunately, in the JS version, it is not possible.
Thank you.