TripleJHJO
Programmer
OK! I am about to beat my head into a wall.
This seems sooooo simple, yet I am missing something here.
When I try to set the .PaperBin property, I am getting an Invalid Property error. This printer (HP4300) has an envelope feeder and should be accepting this command, but it is not. All other lines of code execute, except the PaperBin.
Do I need additional code?
I am including my example code:
This seems sooooo simple, yet I am missing something here.
When I try to set the .PaperBin property, I am getting an Invalid Property error. This printer (HP4300) has an envelope feeder and should be accepting this command, but it is not. All other lines of code execute, except the PaperBin.
Do I need additional code?
I am including my example code:
Code:
On Error GoTo Cancel_It
cmdbPRINT.PrinterDefault = False
cmdbPRINT.Flags = cdlPDReturnDC + cdlPDNoPageNums
If txtAddress.SelLength = 0 Then
cmdbPRINT.Flags = cmdbPRINT.Flags + cdlPDAllPages
Else
cmdbPRINT.Flags = cmdbPRINT.Flags + cdlPDSelection
End If
cmdbPRINT.Orientation = cdlLandscape
Printer.PaperSize = vbPRPSEnv10
Printer.PaperBin = vbPRBNEnvelope
cmdbPRINT.ShowPrinter
txtAddress.SelPrint cmdbPRINT.hDC
Cancel_It:
End Sub