Page 1 of 1

PrintingDocument event

Posted: Sun Mar 23, 2014 10:27 am
by adontz
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?

Re: PrintingDocument event

Posted: Mon Mar 24, 2014 10:53 am
by HighAley
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

Re: PrintingDocument event

Posted: Mon Mar 24, 2014 2:48 pm
by adontz
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.

Re: PrintingDocument event

Posted: Tue Mar 25, 2014 11:51 am
by Alex K.
Hello,

In this case you need set the necessary margins and rerender report again.

Thank you.