WebPagePreview Method Example

This example displays the current document as it would appear if saved as a Web page.

ActiveDocument.WebPagePreview