How to get the PrintDocumentImageableArea for a given PrintQueue without going through PrintDialog?

Posted by Patrick Klug on Stack Overflow See other posts from Stack Overflow or by Patrick Klug
Published on 2010-03-25T01:05:51Z Indexed on 2010/03/25 1:13 UTC
Read the original article Hit count: 463

Filed under:
|
|

From MSDN (link):

The type PrintDocumentImageableArea has no public constructor. Hence, the variable documentImageableArea must be declared and assigned to Nothing and only then passed to the method. This method displays a PrintDialog requiring input from the user. After the user has selected a printer, paper size, and orientation and closed the dialog, documentImageableArea points to an actual object and its properties are initialized.

I have my custom print dialog and need to get the PrintDocumentImageableArea of a given PrintQueue and PrintTicket! (I need the margin's I need to apply)

From what I can gather it is quite common for anything but the most basic applications to use their own custom print dialog. There must be a way to get to this information!?

Any input appreciated!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about printing