Document.WebPagePreview method (Publisher)

Generates a webpage preview of the specified publication in Internet Explorer.

Syntax

expression.WebPagePreview

expression A variable that represents a Document object.

Remarks

A web preview can be generated for print publications. However, the appearance of the web preview may differ from the printed publication.

The web preview opens with the active page displayed. Preview webpages are generated for each page in the publication. However, if the publication is a print publication or otherwise lacks a navigation bar, there may be no way to navigate to those pages.

Use the PublicationType property to determine if a publication is a print publication or a web publication.

This method corresponds to the Web Page Preview command on the File menu.

Example

The following example sets the active page of the publication and generates a web preview of the publication.

 
With ActiveDocument 
 .ActiveView.ActivePage = .Pages(2) 
 .WebPagePreview 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.