com.aspose.words
Class LoadFormat

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

public class LoadFormat 
extends java.lang.Object

Utility class containing constants. Indicates the format of the document that is to be loaded.

Example:

Explicitly loads a document as HTML without automatic file format detection.
Document doc = new Document(getMyDir() + "Document.LoadFormat.html", LoadFormat.HTML, null);

Field Summary
static final intAUTO
           Instructs Aspose.Words to recognize the format automatically.
static final intDOC
           Microsoft Word 97 - 2003 Document format.
static final intDOCX
           Microsoft Office 2007 Open XML format.
static final intRTF
           RTF format.
static final intHTML
           HTML format.
static final intODT
           OpenDocument Text format (OpenOffice Writer) format. Beta!
static final intUNKNOWN
           Unrecognized format, cannot be loaded by Aspose.Words.
 

Field Detail

AUTO

public static final int AUTO
Instructs Aspose.Words to recognize the format automatically.

DOC

public static final int DOC
Microsoft Word 97 - 2003 Document format.

DOCX

public static final int DOCX
Microsoft Office 2007 Open XML format.

RTF

public static final int RTF
RTF format.

HTML

public static final int HTML
HTML format.

ODT

public static final int ODT
OpenDocument Text format (OpenOffice Writer) format. Beta!

UNKNOWN

public static final int UNKNOWN
Unrecognized format, cannot be loaded by Aspose.Words.

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