How to: Display Documents in Print Preview
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 application-level projects for Word 2007 and Word 2010. For more information, see Features Available by Office Application and Project Type.
Procedures for Document-Level Customizations
To display a document in Print Preview by calling the PrintPreview method
Call the PrintPreview method of the Microsoft.Office.Tools.Word.Document class. To use this code example, run it from the ThisDocument class in your project.
Me.PrintPreview()
this.PrintPreview();
To display a document in Print Preview by setting the PrintPreview property
Set the PrintPreview property of the Application object to true.
Application.PrintPreview = True
Application.PrintPreview = true;
Procedures for Application-Level Add-Ins
To display a document in Print Preview by calling the PrintPreview method
Call the PrintPreview method of the Microsoft.Office.Interop.Word.Document that you want to preview. To use this code example, run it from the ThisAddIn class in your project.
Me.Application.ActiveDocument.PrintPreview()
this.Application.ActiveDocument.PrintPreview();
To display a document in Print Preview by setting the PrintPreview property
Set the PrintPreview property of the Application object to true.
Application.PrintPreview = True
Application.PrintPreview = true;