ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Image or Picture from SQL Image Data Type (https://www.excelbanter.com/excel-programming/420720-excel-image-picture-sql-image-data-type.html)

Sam K[_2_]

Excel Image or Picture from SQL Image Data Type
 
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


All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com