Addin for all apps

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

Addin for all apps
Knowing which app is calling the Addin 
Andrew Schofield




Posts: 3
Joined: 2004-09-23
How do you create an Addin for all office apps(inc Outlook), and then when a button for example is clicked know which office app is calling it.
Posted 19 Oct, 2004 06:03:37 Top
Asaf G




Posts: 8
Joined: 2004-10-07
You can check the HostType property of TaxpAddIn.

ohaWord
ohaExcel
ohaOutlook
ohaAccess
ohaProject
ohaPowerPoint
ohaFrontPage
ohaMapPoint
ohaVisio
Posted 19 Oct, 2004 06:15:58 Top
Dmitry Kostochko


Add-in Express team


Posts: 2745
Joined: 2004-04-05
Thanks Asaf, I want to add some comments for Add-in Express 2.

At design-time set the SupportedApps property to [ohaExcel, ohaWord, ohaOutlook, ohaPowerPoint, ohaAccess, ohaProject, ohaFrontPage, ohaMapPoint, ohaVisio]. As an example of an event handler see the code below:

procedure TAddInModule.adxCommandBar1Controls0Click(Sender: TObject);
begin
  case HostType of
    ohaExcel: ;
    ohaWord: ;
    ohaOutlook: ;
    ohaPowerPoint: ;
    ohaAccess: ;
    ohaProject: ;
    ohaFrontPage: ;
    ohaMapPoint: ;
    ohaVisio: ;
  end;
end;


Sincerely,
ADX Support Team
Posted 19 Oct, 2004 06:47:47 Top