Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,

I need to add image at a particular cell location in an Excel sheet. I an using OpenXML approach for this.
Can anyone suggest me how to achieve this ?

For example, i need to put an image at cell "D5".

Thanks and Regards,
YKK Reddy
Posted
Updated 30-Jan-12 1:42am
v2

 
Share this answer
 
Comments
[no name] 1-Feb-12 3:23am    
Hi,

In the above links, first image is placed at the starting of the excel sheet.
Second image to the first image's left and third image is placed at first image's bottom.

Since the pixels and resolutions of the images are fixed, it is hardcoded.
But in my case, the image is dynamic in nature. I need to calculate the coordinates of the image and insert it at a particular cell (Example D5).

Can you explain me how ?
Hi,

For those who need this i am posting the solution also.
I posted the same question in MSDN Microsoft forums and got the solution.

I am posting the link below. Go through the entire post if needed.
http://social.msdn.microsoft.com/Forums/en/oxmlsdk/thread/5c6e7ebd-66e2-40fa-9194-aed5cdc3f0ae[^]

Thanks and Regards,
YKK Reddy
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900