Convert RTF Stream to Plain Text Stream

独自空忆成欢 提交于 2019-12-13 18:15:33

问题


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

Thanks.


回答1:


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

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

This exports the report into an RTF stream. Now you wish to convert this stream to plain text (extract the text from the RTF). If that's true then this thread might have the answer for you.



来源:https://stackoverflow.com/questions/419544/convert-rtf-stream-to-plain-text-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!