带有MS Word 2003的文本框中的DOCX [英] DOCX in textbox with MS word 2003

查看:83
本文介绍了带有MS Word 2003的文本框中的DOCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将docx文件加载到我有MS Word 2003.i尝试过的IFILTER中的文本框中.但是由于无法加载docx过滤器而出现错误. 在此先感谢


i want to load the docx file into the textbox i had MS Word 2003.i had tried with IFILTER.but getting error unable to load filter for docx.is there any other solution
thanks in advance

推荐答案

您必须找出docx文档的字节编码,才能将其解析为富文本格式,纯文本格式或图像格式.
You will have to find out the byte encoding of a docx document in order to parse it for either rich text, plain text, or an image.


Srinvas,
使用RichTextBox的LoadFile方法:
Hi Srinvas,
Use the RichTextBox''s LoadFile method:
RichTextBox1.LoadFile(@"C:\sample.docx",RichTextBoxStreamType.PlainText);


这篇关于带有MS Word 2003的文本框中的DOCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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