如何将docx文件中的图像读取到C#中的变量中 [英] How to read a image in docx file into a variable in C#

查看:90
本文介绍了如何将docx文件中的图像读取到C#中的变量中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从docx模板中读取内容.我只能检索文本部分.图片无法访问.另外,从模板读取内容时格式也会受到干扰.有人这样吗?请告诉我.谢谢.

I am trying to read content from a docx template. I am able to retrieve only the text part. Image is not accessible. Also the formatting is disturbed when content is read from the template. Is Anyone done like this? Please let me know. Thanks.

推荐答案

尝试使用Office Open XML操作 通过C#:
http://msdn.microsoft.com/en-us/office/ee330855.aspx
http://www.codeproject.com/KB/office/ManipulateDocxWithoutMSO.aspx
Try using Office Open XML operations  through C#:
http://msdn.microsoft.com/en-us/office/ee330855.aspx
http://www.codeproject.com/KB/office/ManipulateDocxWithoutMSO.aspx


这篇关于如何将docx文件中的图像读取到C#中的变量中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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