Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2020, 10:29 AM
free@ranger free@ranger is offline MAPItoMIMEStm procedure of IConverterSession instance Windows 10 MAPItoMIMEStm procedure of IConverterSession instance Office 2013
Novice
MAPItoMIMEStm procedure of IConverterSession instance
 
Join Date: Jan 2020
Posts: 1
free@ranger is on a distinguished road
Angry MAPItoMIMEStm procedure of IConverterSession instance

I’m having on problem when using the IConverterSession instance,
more specifically when using the MAPItoMIMEStm procedure
in my application while called on workstations with Outlook 2019 MSO (16.0.10352.20042) 32-bit installed under Windows (10.0.17763.1).
MAPI32.DLL file version is (1.0.2536.0).


My function does not return a result, because of empty stream st.DataString = '' !?

function IMessageToEml(msg: IMessage): String;
var mime: IStream; cs: IConverterSession; st: TStringStream; Subject: String;
begin
Result := '';
Subject := GetMapiStringProperty(msg,PR_SUBJECT);


st := TStringStream.Create('');
try
if CoCreateInstance(CLSID_IConverterSession, nil, CLSCTX_INPROC_SERVER, IID_IConverterSession, cs) = 0 then begin
cs.SetEncoding(IET_BASE64);
mime := TStreamAdapter.Create(st,soReference);
cs.MAPIToMIMEStm(msg, mime, CCSF_SMTP or CCSF_INCLUDE_BCC);
Result := EncodingSubject(st.DataString, Subject);
end;
finally
st.Free;
Finalize(Subject);
end;
end;

While the app is running on workstations with Outlook 2013 (15.0.5172.1000) MSO (15.0.5172.1000) 32-bit installed under Windows (10.0.18362)
MAPI32.DLL file version is (1.0.2536.0)
the function works correctly in most cases.


Thanks for replies
Reply With Quote
Reply

Tags
iconvertersession, mapi32, mapitomimestm

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for expert confirmation on list style procedure Ulodesk Word 18 11-23-2021 11:16 AM
Can't finish update procedure yosbeck Office 1 04-21-2017 04:27 AM
MAPItoMIMEStm procedure of IConverterSession instance 424 Error within a simple application.run procedure grexcelman Excel Programming 1 01-21-2015 08:36 AM
excel where is procedure being called from davids67 Excel Programming 1 11-18-2011 06:48 AM
Document selection procedure kennethc Word 0 09-15-2010 02:56 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft