Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting informations on printer.

0 views
Skip to first unread message

eric escudier

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
Hi,
I'd like to know how to get the size of the margins set in the printer's
driver.
I want to know what are the settings on the default printer, so that I can
print exactly where I want on the page. I have tried to find the functions
which returns this information, but I was unable to find it among the
others. Thanks for any help.

E. ESCUDIER

Jeppe Cramon

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
If you have the handle to the default printer (can be obtained from the
print dialog function)
you can just use GetDeviceCaps() to acuire most of the information.
If you want more advanced stuff, you need to look into PRINTER_INFO_2's
DEV_MODE (Can be obtained from GetPrinter())

HTH

Jeppe Cramon
Cramon Utilities
http://www.cramon.dk

"eric escudier" <eesc...@mairie-perpignan.com> wrote in message
news:eba0bWmD$GA.286@cppssbbsa03...

0 new messages