Object Model Reference : Classes : P : PrintSettings : Properties : PrintSettings.Copies |
Property Copies As Long
Member of PrintSettings
The Copies property returns or specifies the number of copies of a document to be printed.
• |
You can ensure that the pages of a document print together by setting the
Collate property.
|
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.