Printing activeDocuments based on paper type

A

AdamA

Hello,



I am trying to print documents through a macro in word. Is it possible
to refer to what paper type to print on? Currently the network printer
has two active trays. The first for letterhead paper and the second
for plain paper. I can refer to the printer tray number with
.FirstPageTray =259.

The problem is that the department has various shared printers with
different trays, each with the different paper types possibly in
different trays. So ideally I would like to modify the macro for
printing on paper type rather than tray number. The printers can
recognize paper type. Here is a snippet of code.



sub PrintM()

ActivePrinter = "\\REN\TestPCL"

With ActiveDocument.PageSetup

.FirstPageTray = 259

.OtherPagesTray = 260



End With

Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _

wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _

Collate:=True, Background:=True, PrintToFile:=False



end sub



thanks in advance.

- Adam
 
M

Malcolm Smith

I have done something like this for a number of clients.

Would you care to contact me off-list for more information. My mail
address can be located on my site.

- Malc
www.dragondrop.com
 
Top