Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  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








 
Previous Posts
    - How to access a Specific Mailbox on Exchange
    - DataGrids and obtaining information from them
    - Turn of time Automatic update in DateTimePicker Co...
    - datetime.addminutes
    - How to draw a rectangle on a form
    - Protect from Reverse engineering
    - Reading MS Access OLE fields
    - Printing WebPages with VB.net
    - Expression cannot be evaluated at this time
    - How to Prevent Mouse Movement and Clicks From Reac...

Archives
    - 08/01/2004 - 08/08/2004
    - 08/08/2004 - 08/15/2004
    - 08/15/2004 - 08/22/2004
    - 08/22/2004 - 08/29/2004
    - 08/29/2004 - 09/05/2004
    - 09/05/2004 - 09/12/2004
    - 09/12/2004 - 09/19/2004
    - 09/19/2004 - 09/26/2004
    - 09/26/2004 - 10/03/2004
    - 10/03/2004 - 10/10/2004
    - 01/02/2005 - 01/09/2005
    - 01/09/2005 - 01/16/2005
    - 01/30/2005 - 02/06/2005
    - 01/01/2006 - 01/08/2006


Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland