Finding the Printable area

S

Steve Podradchik

Hi,

Our app likes to print data-rich output that fills the page width of the
printer. Unfortunately, we've found that the printable area of each printer
is a little different, making it a bit of a guess to set the left/right
print margins which seem additive to the printable area start. I don't
believe that .Net directly supports providing the printable area but I seem
to remember someone, > 1 year ago, posting some C code to find the printable
area. Any ideas? Or did I miss something in .Net?

Thanks, Steve
 
K

Ken Tucker [MVP]

Hi,

In the printdocument printpage event take a look at
e.pagesettings.bounds and e.pagesettings.margins.

Ken
 

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