printer Fit to Page


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: printer Fit to Page

  1. #1
    Join Date
    Jul 2005
    Posts
    87

    Arrow printer Fit to Page

    I'm trying 2 print a picture 2 a full size (fit to page) paper

    If the paper size is A4 (210x297) then the max size to fit to page is (204x280)
    But there are lets of sizes like B5, A5 and more
    Where can I find the right sizes? ( 2 A4 is 240x280 not 210x297)

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    you can use the ScaleWidth and ScaleHeight properties of the Printer object to determine the size of the printable area, that depends the printer settings, the paper/tray is currently loaded. You can set the units you want using the ScaleMode property. In your case:

    Printer.ScaleMode = vbMillimeters
    maxWidth = Printer.ScaleWidth
    maxHeight = Printer.ScaleHeight

    Marco

    PS I suggest you to "trim" the size a little, just by few millimeters, to be extra sure
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  3. #3
    Join Date
    Jul 2005
    Posts
    87

    thank you

    it's help me like u know

Similar Threads

  1. Replies: 4
    Last Post: 06-24-2005, 02:40 AM
  2. Replies: 7
    Last Post: 06-23-2005, 03:31 AM
  3. Replies: 2
    Last Post: 04-21-2003, 08:12 AM
  4. Replies: 0
    Last Post: 07-22-2002, 12:52 PM
  5. Print a page in the printer
    By Christ in forum ASP.NET
    Replies: 0
    Last Post: 11-10-2000, 12:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center