简体   繁体   中英

Edit inserted picture on a word document using c# interop

I want to edit an inserted picture (c&p) on a word document. So I have this

chart.CopyPicture();                                              
bookmark.Range.Paste();

to copy it from my excel file and paste it into my word file. But now I have to edit it on my word file. 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

shape.Width = 150; 
shape.Height = 150;

See if you can find your picture under bookmark.Range.ShapeRange or bookmark.Range.InlineShapes

https://msdn.microsoft.com/en-us/library/office/ff195321.aspx

https://msdn.microsoft.com/en-us/library/office/ff837242.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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