Previous Document Next Document

Object Model Reference : Classes : P : PDFVBASettings : Properties : PDFVBASettings.PublishRange


PDFVBASettings.PublishRange

Property PublishRange As pdfExportRange

Description

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.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.