|
本帖最后由 yjwdjfqb 于 2013-12-5 11:24 编辑
- Sub Ⅰ反打偶数页() '正反面打印,先反打偶数页,打印完后确定,再顺打奇数页
- With Options
- .UpdateFieldsAtPrint = False
- .UpdateLinksAtPrint = False
- .DefaultTray = "使用打印机设置"
- .PrintBackground = True
- .PrintProperties = False
- .PrintFieldCodes = False
- .PrintComments = False
- .PrintHiddenText = False
- .PrintXMLTag = False
- .PrintDrawingObjects = True
- .PrintDraft = False
- .PrintReverse = True
- .MapPaperSize = True
- .PrintOddPagesInAscendingOrder = False
- .PrintEvenPagesInAscendingOrder = False
- .PrintBackgrounds = False
- End With
- With ActiveDocument
- .PrintPostScriptOverText = False
- .PrintFormsData = False
- End With
- Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
- wdPrintDocumentContent, Copies:=1, Pages:="", PageType:= _
- wdPrintEvenPagesOnly, ManualDuplexPrint:=False, Collate:=True, Background _
- :=True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _
- PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
- MsgBox "反顺打印偶数页完成,请换打印纸方向,正顺打印奇数页!"
- End Sub
- Sub Ⅱ正打奇数页() '正反面打印,先反打偶数页,打印完后确定,再顺打奇数页
- With Options
- .UpdateFieldsAtPrint = False
- .UpdateLinksAtPrint = False
- .DefaultTray = "使用打印机设置"
- .PrintBackground = True
- .PrintProperties = False
- .PrintFieldCodes = False
- .PrintComments = False
- .PrintHiddenText = False
- .PrintXMLTag = False
- .PrintDrawingObjects = True
- .PrintDraft = False
- .PrintReverse = False
- .MapPaperSize = True
- .PrintOddPagesInAscendingOrder = False
- .PrintEvenPagesInAscendingOrder = False
- .PrintBackgrounds = False
- End With
- With ActiveDocument
- .PrintPostScriptOverText = False
- .PrintFormsData = False
- End With
- Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
- wdPrintDocumentContent, Copies:=1, Pages:="", PageType:= _
- wdPrintOddPagesOnly, ManualDuplexPrint:=False, Collate:=True, Background _
- :=True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _
- PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
- End Sub
- '请大家帮我精简优化下这二组代码。谢谢大家了!
复制代码
- Sub Ⅰ反打偶数页() '正反面打印,先反打偶数页,打印完后确定,再顺打奇数页
- With Options
- .DefaultTray = "使用打印机设置"
- .PrintBackground = True
- .PrintDrawingObjects = True
- .PrintReverse = True
- .MapPaperSize = True
- End With
- Application.PrintOut Filename:="", Range:=wdPrintAllDocument, Item:= _
- wdPrintDocumentContent, Copies:=1, Pages:="", PageType:= _
- wdPrintEvenPagesOnly, Collate:=True, Background:=True
- MsgBox "反顺打印偶数页完成,请换打印纸方向,正顺打印奇数页!"
- End Sub
- Sub Ⅱ正打奇数页() '正反面打印,先反打偶数页,打印完后确定,再顺打奇数页
- With Options
- .DefaultTray = "使用打印机设置"
- .PrintBackground = True
- .PrintDrawingObjects = True
- .MapPaperSize = True
- End With
- Application.PrintOut Filename:="", Range:=wdPrintAllDocument, Item:= _
- wdPrintDocumentContent, Copies:=1, Pages:="", PageType:= _
- wdPrintOddPagesOnly, ManualDuplexPrint:=False, Collate:=True, Background:=True
- End Sub
- '请大家帮我精简优化下这二组代码。谢谢大家了!
复制代码没测试,楼主自己测下。
|
|