By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 995 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jul 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Anne DeBlois" <an*********@community.nospamschrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 6 '06 #2

P: n/a
Thanks, I'll check it out.

Anne

"Herfried K. Wagner [MVP]" <hi***************@gmx.ata écrit dans le
message de news: eg**************@TK2MSFTNGP04.phx.gbl...
"Anne DeBlois" <an*********@community.nospamschrieb:
>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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.