Convert RTF stream to plain text stream

I have a crystal report and I need to convert it to a text file. Currently I can only convert it to RTF Stream. Now I need to convert the RTF stream to a text stream. I am using C #.

Thank.

+1


source to share


1 answer


Correct me if I'm wrong, but you are using the ExportToStream method with ExportFormatType.RichText :

Stream stream = report.ExportToStream(ExportFormatType.RichText);

      



Exports the report to an RTF stream. Now you want to convert this stream to plain text (extract text from RTF). If this is true, then this thread may give you the answer.

+3


source







All Articles