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
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