ClosePrintPreview 方法

       

将指定文档从打印预览状态切换到以前的视图。如果指定文档未处于打印预览状态,将导致出错。

expression.ClosePrintPreview

expression   必需。该表达式返回一个 Document 对象。

示例

本示例将活动文档从打印预览切换至普通视图。

If ActiveDocument.PrintPreview = True Then _
    ActiveDocument.ClosePrintPreview
ActiveDocument.ActiveWindow.View.Type = wdNormalView