473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Insert into a word document an Image from Database

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
3 1486
Rabbit
12,516 Expert Mod 8TB
You will need to export the image from the database into a file and then insert that newly created file.
Sep 6 '13 #2
Ghaleon
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
Rabbit
12,516 Expert Mod 8TB
The process in VB and C# would be the same.
Sep 6 '13 #4

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

Similar topics

3
by: lee_j | last post by:
Hi, I have a question below. In the Sql server 2000 I store some word documents.Then I get the data from the database through the asp code and display the word document in IE.The ContentType is...
4
by: Jeff Harbin | last post by:
I've got an ACCESS 2000 application that I'm developing. One of the outputs of this app will be to generate a series of 'jobs' which corresponds to a record in the database. Each record will be...
1
by: Razor | last post by:
Hello, It is possible to open word document from database without storing it in temp file? (c#, office 2003) Thanks for any help Przemysalw Gawron
1
by: aparna | last post by:
Hi To All I am doing one task, in that i am having Word document, and want to insert that word document in the database using asp.net.Pleas tell me which data type can i take in database to...
2
by: Simon | last post by:
I'm simplying trying to download and and open word documents that are stored in the database. I figured out how to uploaded the documents as Byte, but I can't figure out how to get them back out...
0
by: Robin Tucker | last post by:
At the moment I have place-holders in my Word document (before you say it, yes I've posted this query in the VBA newsgroups but they are a little slow - in fact reply was non-existent!). I'm...
0
by: CognitiveFlux | last post by:
Hi All, I'm pretty new to .Net, not to mention XML, so I truly appreciate any advice! I have user data that I want to selectively insert into a MS Word document in XML. Given the various...
2
by: jmar | last post by:
I am updating a VB4.0 quote generation program to VB.net. The old program takes user inputs, performs calculations, saves the data to Access databases and uses Crystal Reports 5.0 to generate a...
5
by: kanthi84 | last post by:
Hi Friends I am doing a project using requesthandlers and ejb. In that, the user is given a provision to enter his comments and suggestions in the text area provided in the html page. After...
2
by: cgd | last post by:
how to do Save Word document to Database in memory, not through the disk
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.