SaveAs Method (Story Control)
Windows - Visual C++
Description
The SaveAs method saves the story
to disk in RTF (Rich Text Format).
Syntax
BOOL value = SaveAs(LPCTSTR szFilename, BOOL append, short ntype);
The SaveAs syntax has these parts:
Part |
Description |
pathName |
A String containing the path name of the file to save to. |
append |
A Boolean indicating whether to append to an existing file or create a new one. |
ntype |
A short integer indicating the file type. 1 indicates text, 2 indicates RTF. |
value |
A Boolean containing TRUE if successful and FALSE otherwise. |
Remarks
If the append parameter is set to
TRUE and the file does not exist, a new file will be created. If the
append parameter is set to FALSE and the file does exist, it will be overwritten.
See Also: CopyToClipboard
Back to: Story Methods