Balaji
Guest
|
Hi Team,
We are using Add-in Module container for multiple applications (Outlook,Word,Excel) to load web application. While opening the applications for the first time , our web application makes few API calls to get the relevant data.
For instance , if we open Outlook for the first time , the web application makes all necessary API calls to the server. And If we open Excel , same set of calls has been made again to the server.
Using Add-In Module , is that possible to have shared instances for all the API calls across the applications rather than sending request again for each application. |
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Hello Balaji,
If your add-in is loaded by any other Office applications, you can call a public method/property defined on the add-in module to find that information:
{an Application object}.COMAddins.Item(strMyComAddinProgId).Object.MyPublicPropertyOrMethod
1. an Application object can be Outlook.Application, Word.Application, etc.
2. strMyComAddinProgId - see the ProgId attribute of your add-in module.
3. MyPublicPropertyOrMethod is called via late binding (see System.Type.InvokeMember in MSDN or search through our forums)
See also http://www.add-in-express.com/creating-addins-blog/2010/07/02/standalone-application-addin-communicate/.
Andrei Smolin
Add-in Express Team Leader |
|