如何使用c#.net将doc文件作为rtf存储到sql服务器数据库中 [英] how to store doc file as rtf into sql server database using c#.net

查看:276
本文介绍了如何使用c#.net将doc文件作为rtf存储到sql服务器数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想将doc文件另存为rtf到sqlserver数据库中,我想显示到文本框或富文本框指南行中或发送任何代码段

hello,
i want to save doc file as rtf into sqlserver database finaly i want to display into textbox or rich text box guide lines or send any snippets

推荐答案

使用Microsoft对象模型将文件另存为RTF,然后将文件读入Stream,然后将其保存到DB.

如果要以其格式显示它,则需要将其加载到支持格式的文件中.
Use the Microsoft Object Model to save the file as RTF, then read the file into a Stream and then save it out to the DB.

If you want to display it with its formatting you''ll need to load it into something that support formatting.


这篇关于如何使用c#.net将doc文件作为rtf存储到sql服务器数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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