Hello,
My problem is that I have to print onto the sheet with preexisting document template with borders, labels etc. So positioning is very important. Document are printed from one and the same PC to multiple printers. Regardless printer model is one and the same, instances differ, page positioning is not perfect. So I was asked if I can adjust page margins based on printer name. I looked for extension points, but as far as I understand, PrintingDocument event is raised before specific printer is selected and no other event is related.
What can you suggest?
PrintingDocument event
Re: PrintingDocument event
Hello.
Unfortunately, there is no such event. Even if it were you would render the report again.
You could try to use the Stretch to Print Area property of the page.
Thank you
Unfortunately, there is no such event. Even if it were you would render the report again.
You could try to use the Stretch to Print Area property of the page.
Thank you
Re: PrintingDocument event
Aleksey,
Thanks for your reply. Actually, my task is to move rendered report 1-2mm top-bottom or left-right, depending on printer instance. So maybe my request to adjust margins was misleading, because I do not need to change width of height of viewport, just move it and thus as far as I understand there is no need to rerender it.
Thanks for your reply. Actually, my task is to move rendered report 1-2mm top-bottom or left-right, depending on printer instance. So maybe my request to adjust margins was misleading, because I do not need to change width of height of viewport, just move it and thus as far as I understand there is no need to rerender it.
Re: PrintingDocument event
Hello,
In this case you need set the necessary margins and rerender report again.
Thank you.
In this case you need set the necessary margins and rerender report again.
Thank you.