Table of contents
Collapse the table of content
Expand the table of content

Document.WebPagePreview Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Generates a Web page preview of the specified publication in Internet Explorer.


expression. WebPagePreview

_expression_A variable that represents a Document object.


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 Web pages 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.


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

With ActiveDocument 
 .ActiveView.ActivePage = .Pages(2) 
End With
© 2018 Microsoft