Respond to Save As button in Backstage tab

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

Respond to Save As button in Backstage tab
 
Pino Carafa




Posts: 162
Joined: 2016-09-28
Hello Add-in Express

I added an AdxRibbonCommand to catch the Save As command, idMso FileSaveAs, and the OnAction fires nicely when the user clicks F12

But it doesn't respond to the Save As from the backstage (idMso is TabSave, I believe?)

How do I add functionality to respond to that button? I've had a look around but can't see an obvious answer.
Posted 16 Dec, 2020 08:26:40 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
I had a look at https://www.add-in-express.com/forum/read.php?FID=5&TID=14890 but this doesn't help me.... I want to perform an action when the user clicks on Save As, or perhaps even better, as the document is being saved?

Most important for Word and Excel. Not so important for other applications.
Posted 16 Dec, 2020 08:29:24 Top
Andrei Smolin


Add-in Express team


Posts: 19138
Joined: 2006-05-11
Hello Pino,

The problem with SaveAs in the BackstageView is: this is a tab, not a button and there's no action associated with clicking it. In earlier Office versions this was a button, though. Now, to be sure that the user clicks *your* control, you have to hide that tab as replicating it seems to be impossible: no Ribbon controls available for developers could replicate the tab's contents.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Dec, 2020 09:29:26 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
Thanks Andrei, that's what I suspected; no problem, I'll approach the situation differently then!
Posted 16 Dec, 2020 10:03:01 Top