Announcement

Collapse
No announcement yet.

Printer Size Discrepancy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printer Size Discrepancy

    This says my printer (HP LaserJet MFP M227) reports a slightly different aspect ratio than 11/8.5. Why the discrepancy? I don't have a different printer to try it on.

    Code:
    Function PBMain() As Long
       Local w,h As Long
       XPrint Attach Default
       XPrint Get Client To w,h
       ? Str$(h/w) + $CrLf + Str$(11/8.5)   '1.306 vs 1.294
       XPrint Cancel
    End Function  ​
    oh ... I should have used Client Get Size.

  • #2

    XPrint Get Client give you the printable portion of the page

    XPRINT GET SIZE allows you to retrieve the full size of the host printer page, including both the printable client area and any unprintable margins

    The unprintable margins can vary from printer to printer, and also may be different top/bottom left/right. They are usually needed to be able to manipulate the paper through the mechanical guts of the printer.

    Virtual printers like PDF printers, usually have no unprintable margins.

    Comment


    • #3
      HP M252dw is the same 1.306... x 1.294...

      Comment

      Working...
      X