[]
        
(Showing Draft Content)

Read and Write RTF File

C1.Word supports reading and writing Rich Text Format (.rtf) documents. Use the Load method to read an existing document and the Save method to write a document to disk.

The following example loads an existing RTF file, saves it under a new name, and opens the result in the default application:

C1WordDocument _doc = new C1WordDocument();

//Reading and Writing RTF files
doc.Load(@"path\to\rtf");
doc.Save("Sample.rtf");
Process.Start(new ProcessStartInfo
{
   FileName = "Sample.rtf",
   UseShellExecute = true,
});