Dmitriy
Mon Feb 23 02:58:41 CST 2004
You could use the PrinterSettings class and probably the PrintDocument
class. I am not sure which "defaults" are used to initialize the fields of a
PrinterSettings instance though. Hope these are those retrieved from
GetDeviceCaps behind the scenes.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Dave" <anonymous@discussions.microsoft.com> wrote in message
news:5E9B6F4C-43DD-447F-8C62-9CBCE651D51A@microsoft.com...
> 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.
>
> TIA,
> Dave