Shows a preview of the worksheet as it would look when printed.
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
For information on optional parameters, see Optional Parameters in Office Solutions.
The following code example uses the method to display a print preview of the current worksheet.
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.