简体   繁体   English

如何在MS Word中获取图像数据

[英]How to get image data in MS Word

I have some problems with developing an add-in for MS Word. 我在为MS Word开发外接程序时遇到一些问题。 I need to get image data of pictures in the word document using C#. 我需要使用C#获取Word文档中图片的图像数据。 I know the method of shape selection to the clipboard, but it seems to me like a hack. 我知道剪贴板的形状选择方法,但是在我看来,这很像黑客。 Is there any method to get image binary data from Shape or InlineShape ? 有什么方法可以从ShapeInlineShape获取图像二进制数据?

您可以解压缩docx文件并在./word/media/下列出所有图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM