OpenFormat Property

Applies To

FileConverter object.

Description

Returns the file format of the specified file converter. Can be one of the following WdOpenFormat constants: wdOpenFormatAuto, wdOpenFormatDocument, wdOpenFormatRTF, wdOpenFormatTemplate, wdOpenFormatText, or wdOpenFormatUnicodeText; or it can be a unique number that represents an external file converter. Read-only Long.

See Also

CanOpen property, DefaultOpenFormat property, FileConverters property, FormatName property.

Example

This example displays the unique format value and the format name for the converters you can use to open documents.

For Each fc In FileConverters
    If fc.CanOpen = True Then MsgBox fc.OpenFormat & vbCr & fc.FormatName
Next fc
This example opens the file named "Data.wp" by using the WordPerfect6x file converter.

Documents.Open FileName:="C:\Data.wp", Format:=FileConverters("WordPerfect6x").OpenFormat