JayM
08-17-2006, 02:58 AM
I know this has probably been asked many times before but I am a bit of a simpleton when it comes to this duplex printing lark. I have looked at Jonathan West's articles on controlling a printer but frankly I am a bit lost with it all.
I have created some macros that print to different paper trays for our printers. Mostly HP PCL 5e/6 drivers the macros I am using work for all the different printer types we have at the moment 4000 - 4100.
What I would like to be able to do is to set some macros to print duplex as well.
My current macro looks something like this :
Sub PRINT_THIN_P()
' PRINT_THIN_P Macro
UNPROTECTDOCUMENT
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterPaperCassette
.OtherPagesTray = wdPrinterPaperCassette
End With
Application.PrintOut filename:="", Range:=wdPrintAllDocument, Item:=wdPrintDocumentContent, _
Copies:=1, Pages:="", PageType:=wdPrintAllPages, Collate:=True, _
Background:=True, PrintToFile:=False
REPROTECTDOCUMENT
End Sub
The UNPROTECT/REPROTECTDOCUMENT just checks to see if it is a protected form and unlocks it for printing and then protects it again after printing.
(Thanks to help from DebsP)
How can I add duplex printing to this. I suppose I should explain that this is for some 100+ users over three sites using different printers.
If you need any more info from me please shout. I would be everso grateful for any help on this matter.
JayM
I have created some macros that print to different paper trays for our printers. Mostly HP PCL 5e/6 drivers the macros I am using work for all the different printer types we have at the moment 4000 - 4100.
What I would like to be able to do is to set some macros to print duplex as well.
My current macro looks something like this :
Sub PRINT_THIN_P()
' PRINT_THIN_P Macro
UNPROTECTDOCUMENT
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterPaperCassette
.OtherPagesTray = wdPrinterPaperCassette
End With
Application.PrintOut filename:="", Range:=wdPrintAllDocument, Item:=wdPrintDocumentContent, _
Copies:=1, Pages:="", PageType:=wdPrintAllPages, Collate:=True, _
Background:=True, PrintToFile:=False
REPROTECTDOCUMENT
End Sub
The UNPROTECT/REPROTECTDOCUMENT just checks to see if it is a protected form and unlocks it for printing and then protects it again after printing.
(Thanks to help from DebsP)
How can I add duplex printing to this. I suppose I should explain that this is for some 100+ users over three sites using different printers.
If you need any more info from me please shout. I would be everso grateful for any help on this matter.
JayM