calbais
asked on
How to set paper source in Lexmark T644 using VBA
I have a sheet of labels (Word 2010 document) at work and would like to be able to automatically select Tray 2 (which contains label paper) whenever I print this page. The printer is a Lexmark T644.
I'm a bit familiar with VBA code if anyone can write a macro that would do this, I could make that work.
Thanks
I'm a bit familiar with VBA code if anyone can write a macro that would do this, I could make that work.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Where can I find "WdPaperTray" enumeration constants?
Type wdpapertray in the search box of the Help facility. This is a copy and paste from the entry:
wdPrinterAutomaticSheetFeed 7 Automatic sheet feed.
wdPrinterDefaultBin 0 Default bin.
wdPrinterEnvelopeFeed 5 Envelope feed.
wdPrinterFormSource 15 Form source.
wdPrinterLargeCapacityBin 11 Large-capacity bin.
wdPrinterLargeFormatBin 10 Large-format bin.
wdPrinterLowerBin 2 Lower bin.
wdPrinterManualEnvelopeFeed 6 Manual envelope feed.
wdPrinterManualFeed 4 Manual feed.
wdPrinterMiddleBin 3 Middle bin.
wdPrinterOnlyBin 1 Printer's only bin.
wdPrinterPaperCassette 14 Paper cassette.
wdPrinterSmallFormatBin 9 Small-format bin.
wdPrinterTractorFeed 8 Tractor feed.
wdPrinterUpperBin 1 Upper bin.
ASKER
It was tray 1 on our printer but this works. Thanks for your help!
Open in new window
?You may have to experiment, because the correct setting will depend on the printer driver.
wdPrinterLowerBin is one of about fifteen WdPaperTray enumertaion constants.