Michael Petersen
Posts: 1
Joined: 2011-02-03
|
Hi
I am developing a Outlook plugin that will manage contact data from a number of databases and displays on one or more forms in Outlook. One of the requirements is the ability to intiate (start and display ) an email displayed in a dbgrid on a TadxOlForm. I have the information displaying but have been unsuccessful in sending an email. I have attempt to access the Outlook & OutLookApp instances , acessible from the TadsAddin module, but not on the TadxOlForm. Please note that I started with the OutLookExtendingAddin sample app.
Any guidance on a direction to take would be greatly appreciated. |
|
Fedor Shihantsov
Guest
|
Hi Michael,
You can use the TadxOlForm.OutlookAppObj, ExplorerObj, InspectorObj properties to access the Outlook instances. Also you can use the AddinModule property to interact with TAddinModule.
procedure TadxOlForm2.Button1Click(Sender: TObject);
begin
ShowMessage('Yes, it works!');
ShowMessage(Self.OutlookAppObj.Version);
if (Self.ExplorerObj <> nil) then begin
ShowMessage(Self.ExplorerObj.Caption);
end;
if (Self.InspectorObj <> nil) then begin
ShowMessage(Self.InspectorObj.Caption);
end;
ShowMessage((Self.AddinModule as TAddInModule).TestMessage());
end;
|
|