Pasting image to word: image size issues
-
I have a word document and I want to paste an image into a cell. Both the cell and the image can be of any size. I am using Microsoft.Office.Interop.Word to do this. After getting the right cell and copying the image to the clipboard, when I call
cell.Range.Paste();
the image gets pasted into the document, but it doesn't get auto resized to fit the cell dimensions. If I select the image with my mouse and then press ctrl + v, the image is re-pasted and auto resized. Is there a way to paste the image from code and have it resize? Thx -
I have a word document and I want to paste an image into a cell. Both the cell and the image can be of any size. I am using Microsoft.Office.Interop.Word to do this. After getting the right cell and copying the image to the clipboard, when I call
cell.Range.Paste();
the image gets pasted into the document, but it doesn't get auto resized to fit the cell dimensions. If I select the image with my mouse and then press ctrl + v, the image is re-pasted and auto resized. Is there a way to paste the image from code and have it resize? Thxhow to insert an image in word file through C# 2008.... please send me the code to insert an image in a word file through C# 2008
csetopper_bhanu