com.aspose.words
Class ViewType

java.lang.Object
    extended by com.aspose.words.ViewType

public class ViewType 
extends java.lang.Object

Utility class containing constants. Possible values for the view mode in Microsoft Word.

Example:

The following code shows how to make sure the document is displayed at 50% zoom when opened in Microsoft Word.
Document doc = new Document(getMyDir() + "Document.doc");
doc.getViewOptions().setViewType(ViewType.PAGE_LAYOUT);
doc.getViewOptions().setZoomPercent(50);
doc.save(getMyDir() + "Document.SetZoom Out.doc");
See Also:
ViewOptions, ViewOptions.ViewType

Field Summary
static final intNONE = 0
           The document shall be rendered in the default view of the application.
static final intREADING = 0
           The document shall be rendered in the default view of the application.
static final intPAGE_LAYOUT = 1
           The document shall be opened in a view that displays the document as it will print.
static final intOUTLINE = 3
           The document shall be rendered in a view optimized for outlining or creating long documents.
static final intNORMAL = 4
           The document shall be rendered in a view optimized for outlining or creating long documents.
static final intWEB = 5
           The document shall be rendered in a view mimicking the way this document would be displayed in a web page.
 

Field Detail

NONE = 0

public static final int NONE
The document shall be rendered in the default view of the application.

READING = 0

public static final int READING
The document shall be rendered in the default view of the application.

PAGE_LAYOUT = 1

public static final int PAGE_LAYOUT
The document shall be opened in a view that displays the document as it will print.

OUTLINE = 3

public static final int OUTLINE
The document shall be rendered in a view optimized for outlining or creating long documents.

NORMAL = 4

public static final int NORMAL
The document shall be rendered in a view optimized for outlining or creating long documents.

WEB = 5

public static final int WEB
The document shall be rendered in a view mimicking the way this document would be displayed in a web page.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.