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. |
|
Asaf G
Guest
|
You can check the HostType property of TaxpAddIn.
ohaWord
ohaExcel
ohaOutlook
ohaAccess
ohaProject
ohaPowerPoint
ohaFrontPage
ohaMapPoint
ohaVisio
|
|
Dmitry Kostochko
Add-in Express team
Posts: 2887
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 |
|