Adding Image into a excel cell and adding a hyperlink to the image

saravananiyyanar

New Member
Joined
May 5, 2011
Messages
1
I have a requirement to create an excel and add an image into a cell and add hyperlink (url ) to the image. I am trying with Apache POI HSSF to achieve the functionality. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
The image to be placed in the cell will be a thumbnail image (small one). Hyperlink to the image will be an url that take you to the full size image.

When I add an image into the cell with anchor option, the image is floating and didn’t reside within the cell. The suggestion was to have an idea of the image dimension and provide the row and cell width accordingly. But could not add a hyperlink to the image though.

Please provide your inputs on whether this is feasible with Apache POI HSSF.


Thanks
Saravanan
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Not sure if you were able to figure it out and don't know about compatability with Apache.

In 2007 Excel, i added a picture with Instert>Picture

Then i Right Clicked on the Image and HyperLink came up as a choice.
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,473
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top