This example illustrates how to save a document in the RichEditControl and how to customize this process.
The RichEditControl.BeforeExport event is handled to reduce the size of an RTF file before it is saved. A warning message appears when you click the Save Document to File button. If you click Yes, the RtfDocumentExporterOptions properties are specified to reduce file size.
A custom SaveDocumentAsCommand command is used to customize the list of available formats in the dialog window.
- Form1.cs (VB: Form1.vb)
- CustomCommand.cs (VB: CustomCommand.vb)