PrintingDocument event

Stimulsoft Reports.WPF discussion
Post Reply
adontz
Posts: 3
Joined: Wed Mar 02, 2011 7:13 pm
Location: Georgia

PrintingDocument event

Post 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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PrintingDocument event

Post 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
adontz
Posts: 3
Joined: Wed Mar 02, 2011 7:13 pm
Location: Georgia

Re: PrintingDocument event

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: PrintingDocument event

Post by Alex K. »

Hello,

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

Thank you.
Post Reply