By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,600 Members | 1,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,600 IT Pros & Developers. It's quick & easy.

Insert into a word document an Image from Database

P: 28
Does anybody know how to insert a picture from a database to a bookmark in a Word Document using vb. ?

I know how to insert image by the path, like
Expand|Select|Wrap|Line Numbers
  1. Word_App.Selection.InlineShapes.Add.Picutre FileName:="C:\Images\winter.jpg"
Also, I Know how to bring the image from the database and store it on a RecordSet.

All I need to know is how may I insert this image into a word document?

Obs: The field that stores the image is LongBlob type.
Sep 6 '13 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 10K+
P: 12,365
You will need to export the image from the database into a file and then insert that newly created file.
Sep 6 '13 #2

P: 28
Got ya...
BUt how do I do that? I'm not used to work with VB ;s
I used to work with C# '-'
Could you give me a hand ?
Sep 6 '13 #3

Expert Mod 10K+
P: 12,365
The process in VB and C# would be the same.
Sep 6 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.