DocumentViewOptions Property
Provides options to control how the document is displayed in Microsoft Word.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
public ViewOptions ViewOptions { get; }

Property Value

Type: ViewOptions
The following code shows how to make sure the document is displayed at 50% zoom when opened in Microsoft Word.

Document doc = new Document(MyDir + "Document.doc");
doc.ViewOptions.ViewType = ViewType.PageLayout;
doc.ViewOptions.ZoomPercent = 50;
doc.Save(ArtifactsDir + "Document.SetZoom.doc");
See Also