Dave,
Also, if you are using Framework 1.1 you can use the OriginAtMargins
property of the PrintDocument. If you set this to true your Graphics origin
will be just inside the Margins setting of the document, i.e. 1"/1" by
default. If you normally use printouts with a wide margin setting this
should work just fine for you.
I still use GetDeviceCaps because I need to check to see if the page
fits inside the printable area of the printer. I scale to fit if it doesn't
and just use TranslateTransform to compensate for the hard margins.
Ron Allen
Dave said:
I'm trying to find a .Net way to get the unprintable margin for a printer.
I know I could link to the SDK function GetDeviceCaps, but, I wanted to make
sure there wasn't a cleaner way.