R
RG
I'm trying to set printer information - and settings - in VB6 and then
pass this to a Word macro. I use code like this
With printerCommonDialog
.PrinterDefault = True 'sets the system-wide default printer
.CancelError = True
.flags = cdlPDHidePrintToFile Or cdlPDNoSelection Or
cdlPDNoPageNums
.ShowPrinter
intCopies = .Copies
End With
and then pass intCopies to the macro to let the user select a printer
and the number of copies. But if the user clicks a Print dialogue tab
to (e.g.) change the paper source, how do I retrieve that in order to
pass it as well?
pass this to a Word macro. I use code like this
With printerCommonDialog
.PrinterDefault = True 'sets the system-wide default printer
.CancelError = True
.flags = cdlPDHidePrintToFile Or cdlPDNoSelection Or
cdlPDNoPageNums
.ShowPrinter
intCopies = .Copies
End With
and then pass intCopies to the macro to let the user select a printer
and the number of copies. But if the user clicks a Print dialogue tab
to (e.g.) change the paper source, how do I retrieve that in order to
pass it as well?