Printing issue on VB6 using Printer Object Property "PaperSize" for custom size paper
Having issues while printing custom size paper (8.5X7) on manual tray of Xerox (Work Center 7545) Printer. Even though specifying the printer to pull paper from the manual feed its pulling from the default tray. Below is the code I'm using
Code:
Dim x1 As Printer
For Each x1 In Printers
If x1.DeviceName = Printer.DeviceName Then
Set Printer = x1
Printer.Height = (7 * 1440)
Printer.Width = (8.5 * 1440)
Printer.PaperSize = vbPRPSUser
Printer.PaperBin = 258 'Mannual
Exit For
End If
Next
Printers and ScannersVisual Basic Classic
Last Comment
Martin Liss
8/22/2022 - Mon
Martin Liss
Try vbPRBNManual (which has a value of 4) instead of 258.
This page lists the properties.