Solved

Delphi5,Oracle8i and Ms-word

Posted on 2000-02-15
10
287 Views
Last Modified: 2010-04-04
Hi experts,
I need store Ms-word documents in Oracle db.
 After i need, without save again this field in hard disk,start ms-word,open a document from my db.How?
  Thanks.
0
Comment
Question by:franzem
10 Comments
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
mmm, so also when you changed the contents, you would like to save it directly to the database and not to HD? Why do you want to avoid the saving of the document from db to HD? This would surely make it easier. You can always delete the file from the HD when it isn't needed anymore.

Zif
0
 

Author Comment

by:franzem
Comment Utility
Yes,the idea is not save nothing in HD only in DB. Preference without save intermediate files, there no way?
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
hi franzem,

this is not possible, word cannot direct edit a document in a db.
you must temporary extract the blob from the db atleast into memory, then you may edit it in an olecontainer.

if you don't want a ole-container,
then you have to extract the blob into a file and execute word.

meikl
0
 
LVL 10

Expert Comment

by:ptmcomp
Comment Utility
I think it's possible if you use Word as inplace ActiveX. Then the file menu doesn't appear and you can create your own. You can load and save word docs as ole streams.
ptm.
0
 
LVL 2

Expert Comment

by:florisb
Comment Utility
following... (...just storing links in the database is no option, hmmmm?)

F.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:franzem
Comment Utility
For Florisb :Now is make storing links.
For Kretzschmar and ptcomp:How,from memory streams load a Olecontainer or a ActiveX with Ms-word embeded?
0
 
LVL 15

Accepted Solution

by:
simonet earned 400 total points
Comment Utility
I have written a program that does exactly what you want, by  using OLE and a BLOB field.

Although the program I wrote (for didatic purposes) uses a Paradox table, I have done the exact same thing with Oracle, and it worked great.

You can download the program, with full source code, from

http://www.bhnet.com.br/~simonet/extras/oledb.zip

It allows you to store a file in a BLOB field, and, through an OLEContainer, directly linked to the database, you can edit the document without needing the actual file. All changes are saved to the DB, rather than to the file. It also doesn't use "temporary files". Everything is done using streams between the BLOB field and the container. Anyway, the code is all there and if you have questions, feel free to contact me.

Yours,

Alex

0
 

Author Comment

by:franzem
Comment Utility
OK. Alex yours points.
0
 

Expert Comment

by:oldgvozdik
Comment Utility
this link does not work
0
 

Expert Comment

by:meldel
Comment Utility
This link does not work.
Simonet, please can send an new link.

thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now