BRIZLGWord methods
_DocSaveAs FileName, FileFormat
FileName Optional. The name for the document. The default is the current folder and file name. If the document has never been saved, the default name is used (for example, Doc1.doc). If a document with the specified file name already exists, the document is overwritten without the user being prompted first.
FileFormat Optional. The format in which the document is saved. Can be any WdSaveFormat constant. To save a document in another format, specify the appropriate value for the SaveFormat property of the FileConverter object.
| WdSaveFormat can be one of these WdSaveFormat constants. | ||||||||
| wdFormatDocument (0) Saves as a Word document. Default. | ||||||||
| wdFormatDOSText (4) Saves text without formatting. Converts all section breaks, page breaks, and new line characters to paragraph marks. Uses the ANSI character set. Use this format to share documents between Word and DOS-based programs. | ||||||||
| wdFormatDOSTextLineBreaks (5) Saves text without formatting. Converts all line breaks, section breaks, and page breaks to paragraph marks. Use this format when you want to maintain line breaks, for example, when transferring documents to an electronic mail system. | ||||||||
| wdFormatEncodedText (7) Saves as an encoded text file. Use the Encoding argument to specify the code page to use. | ||||||||
| wdFormatHTML Saves all text and formatting with HTML tags so that the resulting document can be viewed in a Web browser. | ||||||||
| wdFormatRTF (6) Saves all formatting. Converts formatting to instructions that other programs, including compatible Microsoft programs, can read and interpret. | ||||||||
| wdFormatTemplate (1) Saves as a Word template. | ||||||||
| wdFormatText (2) Saves text without formatting. Converts all section breaks, page breaks, and new line characters to paragraph marks. Uses the ANSI character set. Use this format if the destination program cannot read any of the other available file formats. | ||||||||
| wdFormatTextLineBreaks (3) Saves text without formatting. Converts all line breaks, section breaks, and page breaks to paragraph marks. Use this format when you want to maintain line breaks, for example, when transferring documents to an electronic mail system. | ||||||||
| wdFormatUnicodeText (7) Saves as a Unicode text file. Converts text between common character encoding standards, including Unicode 2.0, Mac OS, Windows, EUC and ISO-8859 series. | ||||||||
| Other File Types To save in a file type for which there isn't a constant, use the FileConverters object to obtain the SaveFormat property; then set the FileFormat argument to the value of the SaveFormat property. | ||||||||
|