How to Find Printer's Left Most Margin and Top Most Margin

A

Anne DeBlois

Hi,

In VB 2005, I need to get the printer's left most and top most margin that a
selected printer can prit to on a piece of paper, so I can adjust the
PrintDocument classes to get as uniform as possible a printout no matter
which print driver is selected. How do I get (and then set) this information
in VB?

Thank you so much in advance,

Anne
 
H

Herfried K. Wagner [MVP]

Anne DeBlois said:
In VB 2005, I need to get the printer's left most and top most margin that
a selected printer can prit to on a piece of paper, so I can adjust the
PrintDocument classes to get as uniform as possible a printout no matter
which print driver is selected. How do I get (and then set) this
information in VB?

..NET 1.*, maybe there isn't a managed way in .NET 2.0 too:

Determining a printer's physical margins
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=getphysicalprintermargins&lang=en>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top