Results 1 to 3 of 3

Thread: How to determine non-printable area?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Question How to determine non-printable area?

    Hi,
    How can I get the dimensions of the non-printable area of a page on any connected printer ?
    (Perhaps get dimensions of printable area and subtract from size of whole page - but how?)

    Thanks all.

  2. #2
    jim mcnamara
    Guest
    Code:
    Printer.ScaleMode = vbInches
    width = Printer.ScaleWidth
    height = Printer.ScaleHeight
    Gives width & height in inches. For centimeters -

    Printer.ScaleMode = vbCentimeters

    This works for the current default printer. If the user changes printers, then the values have to be queried again.

    Edit --- I'd do better to read your question first...

    Code:
    noPrintWidth = (Printer.Width - Printer.ScaleWidth) / 2
    noPrintHeight = (Printer.Height - Printer.ScaleHeight) / 2
    ' assuming the printable area is centered this gives the 
    ' no print band on each each

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Talking

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width