Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If your solution generates a report, you might want to display the report to the user in Print Preview mode.
Applies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. For more information, see Features available by Office application and project type.
Call the PrintPreview method of the Document class. To use this code example, run it from the
ThisDocument
class in your project.
Set the PrintPreview property of the Application object to true.
Call the PrintPreview method of the Document that you want to preview. To use this code example, run it from the
ThisAddIn
class in your project.
Set the PrintPreview property of the Application object to true.