Page 1 of 1

Accessing Scalix via Extended Mapi through Delphi component

Posted: Wed Nov 08, 2006 1:58 pm
by swestner
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