The rtfdemo sample program demonstrates how to use the Viewing API to perform conversions of documents to RTF. To start the rtfdemo program, enter the following command at a DOS prompt or in the Run dialog box:

rtfdemo sourcefile targetfile

where sourcefile and targetfile include the complete path and file name.