Excel Image or Picture from SQL Image Data Type

S

Sam K

Trying to add a picture to a cell programmatically that is stored in SQL
Server as a Image Data Type. Can anyone tell me how to all this in VB.NET or
C#. The following works for a image stored on the computer, however I need to
pull from the database.

Dim pic As String = "c:\pic.jpg"
Dim opicture As Object
opicture = oSheet.Pictures.Insert(pic)


Thanks,
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top