次の方法で共有


XmlMappedRange.PrintPreview(Object) Method

Definition

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

public object PrintPreview (object EnableChanges);
abstract member PrintPreview : obj -> obj
Public Function PrintPreview (Optional EnableChanges As Object) As Object

Parameters

EnableChanges
Object

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

Returns

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

Remarks

Optional Parameters

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

Applies to