共用方式為


Workbook.PrintPreview Method

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

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

Syntax

'Declaration
Sub PrintPreview ( _
    EnableChanges As Object _
)
void 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.

Remarks

Optional Parameters

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

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace