Msg#: 4453119 posted 7:29 am on May 14, 2012 (gmt 0)
I'm trying to create an add-in for excel with VSTO in VB.net, I imported an image(Logo1) in the resources folder of the project, now I would like to insert in the spreadsheet (mysheet).The image is into the installation package like example the images of the ribbons. I tried
Msg#: 4453119 posted 1:52 pm on May 14, 2012 (gmt 0)
I found one link which walks though inserting an picture in a specific cell, and the related code. The only downside I see is the api assumes the file will be saved in the filesystem, and not sent as a stream object link you are attempting to do.
Msg#: 4453119 posted 4:52 pm on May 14, 2012 (gmt 0)
The tricky way to do it is save the resource file to the local users temp folder, then do the insert from that file location, and delete it when you are done. So the master copy will always be in your install binary. But copies will be saved to the drive long enough to be read by the api call.