Object Model Reference : Classes : P : PrintSettings : Properties : PrintSettings.Collate |
Property Collate As Boolean
Member of PrintSettings
The Collate property determines whether the pages of a document print together when several copies are printed.
• |
The following VBA example creates a new document containing two pages. It adds the page number to each page and then prints three collated copies of the document.
Sub Test() |
Dim doc As Document |
Dim page As page |
Set doc = CreateDocument |
With doc |
.AddPages 2 |
For Each page In .Pages |
page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index |
Next page |
.PrintSettings.Copies = 3 |
.PrintSettings.Collate = True |
.PrintOut |
End With |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.