Expand Minimize

WorksheetBase.PrintPreview Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Shows a preview of the worksheet as it would look when printed.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

public void PrintPreview(
	Object enableChanges


Type: System.Object

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

The following code example uses the PrintPreview method to display a print preview of the current worksheet.

This example is for a document-level customization.

private void PreviewWorksheet()
    // Make sure the worksheet has some data before displaying  
    // a print preview. 
    this.Range["A1"].Value2 = "123";

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft