CRichEditCtx.SaveRtfmethod
Saves the contents of the rich edit control to a file in rtf format.
Syntax
FUNCTION SaveRtf (BYREF wszFilename AS WSTRING, BYVAL Overwrite AS BOOLEAN = FALSE, BYVAL dwFlagsAndAttributes AS DWORD = FILE_ATTRIBUTE_NORMAL) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
wszFilename | Path and file name of the file where the RTF content will be saved. | |
Overwrite | If true, the file will be overwritten if it already exists and the function will return true; if false, the file will not be overwritten, the function will return false and GetLastResult" will return the **ERROR_ALREADY_EXISTS error. | |
dwFlagsAndAttributes | The file or device attributes and flags. Default is FILE_ATTRIBUTE_NORMAL, which is the most common default value for files. To see more options see CreateFileW |
Return value
Boolean true on success or false on failure.
Description
Saves the contents of the rich edit control to a file in rtf format.
Reference
- Defined in AfxNova/CRichEditCtx.inc:3771
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class