将RTF流转换为纯文本流 [英] Convert RTF Stream to Plain Text Stream

查看:169
本文介绍了将RTF流转换为纯文本流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有水晶报告,我需要将其转换为文本文件。目前我只能将其转换为RTF流。现在我需要将RTF流转换为文本流。我正在使用C#。

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#.

谢谢。

推荐答案

我错了,但您正在使用 ExportToStream 方法 ExportFormatType.RichText

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

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

这将报告导出到RTF流。现在,您希望将此流转换为纯文本(从RTF中提取文本)。如果是这样,请此主题可能有你的答案。

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.

这篇关于将RTF流转换为纯文本流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆