Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving my document in a variable 1

Status
Not open for further replies.

ccs

Programmer
Jun 11, 2001
2
US
I would like to save my microsoft/word document in a variable within VB6. Also would like to be able to take that variable and display it in microsoft/word.
 
why not store the location of the document and let all of the applications have access to it by filename and path.
This way, How hard could it be for Word to figure out what's going on? Or for VB for that matter!
Pete
_____________
Real programs don't eat cache


 
Hi zlovelife,
What I am trying to do is save the document in my .mdb so that the users can use it in the processes. I understand that I could save the document name in the .mdb and then open the document file latter for reporting but would rather store it in the database. thanks CCS...
 
ccs:

Just create a field on your table of the type OLE object, than you embed your word documents there.

If you have your documents stored on disk and want to place it on your database you can use the GetChunk/AppendChunk methods for the job.
You can get a preety good example on how to work with this at:


I'm not sure if the above method will work for what you want, other way of doing it is to use the stream object for the task.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top