I am trying to learn how wpf printing works. In this process I am creating "A Print Setup Dialog" just as the old gdi printsetup dialog. Setting the papersize, papersource (tray) and paperorientation works fine, but setting the margins seems to be difficult.
Where do I get the current margins settings of the printer ?
I have extracted the printers possible papersizes and papersources from from the PrintQueue class via the PrintCapabilities object:
defaultPrintQueue = LocalPrintServer