Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1187
UltraPrintDocument, margins different in preview than printed
posted

I have a windows form that has the UltraPrintDocument and UltraPrintPrevewControl on it.  The user selects an item from a list and it generates the print preview and everything looks just like it should.  When I call the printdocument.print, the margins are out, everything is shifted right and down.

I have the UltraPrintDocument.OriginAtMargins property set to false, but it appears when the document is printed to the printer, it's treating this property as true.  Is there a different property that needs to be set when sending to the printer and not the print preview?

On my document I have a report border drawn that is 0.25" inside from all edges.  On the preview, it looks exactly like it should.  When sent to the printer, my top border is 0.4" from the top edge of the paper and 0.4" from the left edge of the paper and and my bottom and right borders are cut off.