Accessing Scalix via Extended Mapi through Delphi component

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

swestner

Accessing Scalix via Extended Mapi through Delphi component

Postby swestner » Wed Nov 08, 2006 1:58 pm

Hello,

we use Rapware (www.rapware.com) in our Delphi-program to access extended mapi features like sending mails, creating task, ....

Wioth Outlook an dexchange createing a task works fine but with scalix we get an error. The code is:

procedure TdmRAPMapi.OpenNewTaskForm(AttachmentList:TIwadisobjectList);
var
FormMgr :IRwMapiFormMgr;
FormRect:TRwMapiRect;
MsgStore:IRwMapiMsgStore;
Folder:IRwMapiFolder;
begin
if not MapiSession.LogonInfo.UseExtendedMapi then begin
TdmiwadisApp.getInstance.dlgError('Aufgaben werden mit SimpleMapi nicht unterstützt!');
Exit;
end;
assert(AttachmentList<>nil);
SaveAttachmentObjectListToFiles(AttachmentList,1);

MsgStore := MapiSession.GetDefaultMsgStore(alReadWrite);
Folder := MsgStore.OpenFolderByType(ftTask, alReadWrite, False);
FormMgr:= MapiSession.GetFormMgr;
FormMgr.SetOnCreateMessage(OnCreateMessage);
FormMgr.SetOnShutdown(OnShutdown);
FormRect := FormMgr.GetStoredRect('IPM.Task', 100, 100, 400, 400);
FormMgr.NewMessage(Folder, 'IPM.Task', FormRect,0,vsModal);
end;


You could find the error-message under
http://www.iwadis.de/upload/Scalix_Error.jpg
and the log-fiole from the client:
http://www.iwadis.de/upload/Scalix_Log.zip

Could someone give it a look?

Thanks

Stefan Westner

Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 3 guests