How to go back from "Save As" stage of the document

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

How to go back from "Save As" stage of the document
 
David Potashinsky




Posts: 31
Joined: 2010-02-14
We have our own tab on Save As stage of office applications.
question is how to go back to document when our Save As was finished.

thank you
Posted 14 Mar, 2017 15:30:10 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello David,

Make sure the Backstage button you click to perform the action has IsDefinitive=true.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Mar, 2017 05:29:57 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
thank you , Andrei - looks working.
Posted 15 Mar, 2017 08:43:28 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Mar, 2017 08:48:28 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
additional question, what if I need to control of Backstage by myself:
I need to stay on backstage screen while our Save As process is not finished (i.e. block access to document).
Only after all out processing will finish we need to back to Document. So, how do I trigger "back to document"?

thank you for help, D.
Posted 15 Mar, 2017 10:14:41 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello David,

No such way exists in the Outlook object model. You can dry to use SendKeys to send it an {Esc}.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Mar, 2017 04:35:33 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
I need WinWord Excel and Power Point.

How may I send {Esc}? To what window?
Posted 16 Mar, 2017 08:20:03 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
According to https://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send(v=vs.110).aspx, that method sends the specified key(s) to the active application.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Mar, 2017 09:19:19 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
this article talks about System.Windows.Forms Window. What Window I have in AddinExpress addin ?
Posted 16 Mar, 2017 09:21:55 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
The article doesn't mention "window".

You invoke the SendKeys method as follows:

System.Windows.Forms.SendKeys({key(s) here})

The description of this method is: "Sends keystrokes to the active application."

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Mar, 2017 09:36:16 Top