Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Adding image into Excel using OLEDB and Visual Studio NET

$
0
0

Hello. Long time I worked with Excel and VB.NET using late binding.

I found that OLEDB has some advantages(If I wrong please advise).

For adding values I used syntax:  Sheet .Range("D6").Value = SomeValue

For adding images I used syntax: Sheet.Shapes.AddPicture("image.jpg", True, True, 290, 110, 147, 74)

Now: for values I found: "UPDATE[Sheet1$" & Range & ":" & Range & "] SET F1='" & Value & "';"

My question now how to add image using OLEDB?

MY IDE: VS2012 + VB.NET

my connection string is: "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & ExcelFilePath & ";" & "Extended Properties='Excel 8.0;HDR=no;'"

Thank you


Michael


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>