Override FileSave and FileSaveAs

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

Override FileSave and FileSaveAs
 
Ben Van Mulders




Posts: 27
Joined: 2007-03-14
Hi,

Searching the forums i stumbled upon an example to override the FileSave and FileSaveAs events in Word
(http://www.add-in-express.com/projects/mysavedialog_vb.zip)

I tried implementing it, but all i get is 2 extra buttons on my Add-In Ribbon.
The standard Save and SaveAs dialogs still appear when using the standard buttons.
Anyone has an idea why ? Or is it because of Office 2007 ?

Thnx,
Ben
Posted 19 Mar, 2007 06:53:53 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Ben.

The example is written for MS Office 2000 - 2003 and it doesn't work correctly in Office 2007. Do you use Add-in Express v3.4?


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 19 Mar, 2007 09:20:40 Top
Ben Van Mulders




Posts: 27
Joined: 2007-03-14
Hi Sergey,

I'm using Add-in Express?Â?Ô?? 2007 for Microsoft??? .NET, Standard
Posted 19 Mar, 2007 09:26:53 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Ben, in Office 2007 you need to use the 'command' element of the Ribbon scheme to connect to built-in controls of the Ribbon UI. Now Add-in Express doesn't support this element. We will support it in the next build.
Posted 19 Mar, 2007 10:14:07 Top
Ben Van Mulders




Posts: 27
Joined: 2007-03-14
Too bad it isn't supported then :-)
So overriding them is not an option for the moment.
Posted 20 Mar, 2007 09:15:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
No it is possible. You can override them in the OnRibbonBeforeLoad event handler using the e.Xml property.
Posted 20 Mar, 2007 09:45:07 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
However in this case you will not able to use adxloader.dll.
Posted 20 Mar, 2007 09:47:10 Top