Export (0) Print
Expand All
Expand Minimize

XmlMappedRange.PrintPreview Method

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

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public Object PrintPreview (
	[OptionalAttribute] Object EnableChanges



true to allow changes to the margins and page setup while displaying the print preview; otherwise, false.

Optional Parameters

For information on optional parameters, see Understanding Optional Parameters in COM Interop.

The following code example uses the PrintPreview method to display a print preview of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void DisplayPrintPreview()
    this.CustomerLastNameCell.Value2 = "Smith";

© 2014 Microsoft