Workbook.PrintPreview Method (2007 System)
Shows a preview of the object as it would look when printed.
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
For information on optional parameters, see The Variable missing and Optional Parameters in Office Solutions.
The following code example uses the method to show a print preview of the current workbook.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.