我想在word文档上编辑插入的图片(c & p)。 所以我有这个使用c#interop在word文档中编辑插入的图片
chart.CopyPicture();
bookmark.Range.Paste();
把它从我的Excel文件复制并粘贴到我的Word文件。但现在我必须在我的文字文件上进行编辑。 我该如何找到它?
我想在word文档上编辑插入的图片(c & p)。 所以我有这个使用c#interop在word文档中编辑插入的图片
chart.CopyPicture();
bookmark.Range.Paste();
把它从我的Excel文件复制并粘贴到我的Word文件。但现在我必须在我的文字文件上进行编辑。 我该如何找到它?
如果你想改变形状,使用How to change the size of a picture after inserting it into a word document
shape.Width = 150;
shape.Height = 150;
看看你能不能找到bookmark.Range.ShapeRange在你的照片或bookmark.Range.InlineShapes
https://msdn.microsoft.com/en-us/library/office/ff195321.aspx
https://msdn.microsoft.com/en-us/library/office/ff837242.aspx
要更清楚一些: 在PPT中我能够做类似 shape = something.Paste();因为粘贴()或粘贴特殊()返回一个形状,但它不是在字。它的言辞无效。 所以shape = bookmark.Range.Paste()是不可能的。 – RedDot