Object Model Reference : Classes : P : PDFVBASettings : Properties : PDFVBASettings.PageRange |
Property PageRange As String
Member of PDFVBASettings
The PageRange property sets the range of pages to publish to PDF.
• |
For this property to be applied, the PublishRange property must be set to
pdfPageRange.
|
The following VBA example publishes the first three pages of the active document to PDF.
Sub Test() |
With ActiveDocument.PDFSettings |
.PublishRange = pdfPageRange |
.PageRange = "1-3" |
End With |
ActiveDocument.PublishToPDF "C:\MyDocument.pdf" |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.