Finding the Printable area
(Thursday, September 02, 2004)
Found the following interesting discussion in the Newsgroups:
Finding the Printable area by: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
| | | Reply: by:Ken Tucker [MVP]
| | | Hi,
In the printdocument printpage event take a look at e.pagesettings.bounds and e.pagesettings.margins.
Ken
|

|
0 Comments:
Post a Comment
<< Home