Save Word document to a database

B

Brady

For memo type fields in my database I want to be able to use word as the
editor. I have a Visual studio 2005 forms based application that interacts
with the database listed invoices etc.. I would like to be able to invoke
word as the editor for description type fields similar to how outlook uses
word for it's message editor. Does anyone have any examples, sample code, or
concepts regarding how to go about doing this?

I am thinking of an approach that would use VSTO. I would have an edit
button on the application that would say invoke word to edit. The
application would retrieve the memo data from the database ( I am thinking
that perhaps I should store the description in HTML format), invoke word,
load the data into word. Then muck with the menus and capture the save and
save as commands and write code to save the data to my database instead of a
file.

I am having trouble figuring out exactly how to go about loading the data
into word and getting the data to save it back out to the database.

Thanks
 
J

Jezebel

Experiment with the OLE control -- it will do most of what you need
automatically. Can even be data-bound to a memo field, if I remember
rightly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top