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)

Syntax

'Declaration
Function PrintPreview ( _
    EnableChanges As Object _
) As Object
Object PrintPreview(
    Object EnableChanges
)

Parameters

  • EnableChanges
    Type: System.Object

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

Return Value

Type: System.Object

Remarks

Optional Parameters

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

Examples

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 Sub DisplayPrintPreview()
    Me.CustomerLastNameCell.Value2 = "Smith" 
    Me.CustomerLastNameCell.PrintPreview(True)
End Sub
private void DisplayPrintPreview()
{
    this.CustomerLastNameCell.Value2 = "Smith";
    this.CustomerLastNameCell.PrintPreview(true);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace