[英]Edit inserted picture on a word document using c# interop
I want to edit an inserted picture (c&p) on a word document. 我想在Word文档中编辑插入的图片(c&p)。 So I have this 所以我有这个
chart.CopyPicture();
bookmark.Range.Paste();
to copy it from my excel file and paste it into my word file. 从我的excel文件复制并将其粘贴到我的Word文件中。 But now I have to edit it on my word file. 但是现在我必须在我的Word文件中对其进行编辑。 How can I find it to do so? 我如何找到它呢?
If you would like to change shape, use How to change the size of a picture after inserting it into a word document 如果要更改形状,请在将其插入Word文档后使用如何更改图片的大小
shape.Width = 150;
shape.Height = 150;
See if you can find your picture under bookmark.Range.ShapeRange or bookmark.Range.InlineShapes 查看是否可以在bookmark.Range.ShapeRange或bookmark.Range.InlineShapes下找到您的图片
https://msdn.microsoft.com/en-us/library/office/ff195321.aspx https://msdn.microsoft.com/zh-CN/library/office/ff195321.aspx
https://msdn.microsoft.com/en-us/library/office/ff837242.aspx https://msdn.microsoft.com/zh-CN/library/office/ff837242.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.