Saves the contents of the RichTextEditor to a file.

Namespace: RTE
Assembly: RichTextEditor (in RichTextEditor.dll) Version: 8.0.0.0 (8.0.0.0)

Syntax

C#
public void SaveFile(
	string path
)
Visual Basic
Public Sub SaveFile ( _
	path As String _
)
Visual C++
public:
void SaveFile(
	String^ path
)

Parameters

path
Type: System..::..String
The name and location of the file to save.

Remarks

The SaveFile method enables you to save the entire contents of the control to a file. If the file name that is passed to the path parameter already exists at the specified directory, the file will be overwritten without notice. You can use the LoadFile, LoadWord, LoadRTF, LoadText method to load the contents of a file into the RichTextEditor.

Examples

CopyC#
editor1.SaveFile("~/doc/myHtmlfile.htm");

See Also