Saving a word, excel file

Add-in Express™ Support Service
That's what is more important than anything else

Saving a word, excel file
 
Samir Gulrajani




Posts: 5
Joined: 2005-02-28
Hi, I was wondering if there is a way to create a button in Word that the user can click which would then save a the currently opened document to a database. I have already created a button for outlook to save an email. In that one I just copied the subject to the database. Now with a file I was wondering where to start with this task. The accessing the database part is the easy part.

Thanks
Posted 05 Mar, 2005 09:29:24 Top
Eugene Starostin


Guest


You can use IDataObject to get binary data of word documents and excel workbooks.
Posted 06 Mar, 2005 06:09:26 Top
Samir Gulrajani




Posts: 5
Joined: 2005-02-28
I am able to add this to the "File" menu of word then create this button next to the "save" or "save as" item. In that event how do I access the IDataObject to save it. I am sorry, but I am a little confused.
Posted 08 Mar, 2005 10:35:35 Top
Eugene Starostin


Guest


As I see you need to add a new item to the File menu and save the active document in the item click handler. In MS terms the item is a command bar button.
Posted 08 Mar, 2005 10:44:43 Top