Override FileSave and FileSaveAs

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

Override FileSave and FileSaveAs
How to override standard FileSave and FileSaveAs dialogs 
Figmo Just Figmo




Posts: 1
Joined: 2005-10-17
I need to be able to override the standard FileSave and FileSaveAs dialogs from Word with my own dialogs from a COM Add-In. I found some info on the web saying that I need a FileSaveAs/FileSave module in my addin template that has a Sub Main.

Can somebody describe the best way to integrate this into an ADX .NET project? (I'm using Visual Basic .NET)
Posted 17 Oct, 2005 12:15:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi, Figmo.

You can use the ADXBuiltInControl component to disable the standard actions of the buttons and create your own dialogs. You can download an example here:
http://www.add-in-express.com/projects/mysavedialog_vb.zip
Posted 17 Oct, 2005 14:43:31 Top
Chris Cardinal


Guest


Would you have a C# example? I've tried porting it - but must be missing something. I can block the Save/Save As but can't get my own handler to be called....


Posted 03 Dec, 2005 15:47:53 Top
Sergey Grischenko


Add-in Express team


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

You can download an example by using the following link:
http://www.add-in-express.com/projects/mysavedialog_cs.zip
Posted 05 Dec, 2005 16:30:52 Top
Chris Cardinal


Guest


Thanks...

Question - I don't quite understand how you are intercepting/disabling the default events on save/saveAs. There are other buttons/actions I would like to intercept (Open|Save As WebPage). Is it based on the Id - if so, what are the other Ids?

thanks a lot
Posted 06 Dec, 2005 08:29:34 Top
Sergey Grischenko


Add-in Express team


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

Yes, correct. It is based on buttons IDs.
We have a tool called 'Built-in Controls Scanner' to scan all IDs of controls . You can download it using the following link:
http://www.add-in-express.com/downloads/controls-scanner.php
Posted 06 Dec, 2005 12:14:51 Top