Object Model Reference : Classes : P : PDFVBASettings : Properties : PDFVBASettings.PublishRange |
Property PublishRange As pdfExportRange
Member of PDFVBASettings
The PublishRange property specifies the portion of a document to publish to PDF.
• |
If you choose pdfPageRange, you can set the page range by setting the
PageRange property.
|
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.