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 |
|
Eugene Starostin
Guest
|
You can use IDataObject to get binary data of word documents and excel workbooks. |
|
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. |
|
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. |
|