Discussion:
Save Outlook Message (Email) to MSG Compound File in Outlook 2010
(too old to reply)
Stuart Bray
2009-12-22 20:02:04 UTC
Permalink
Hi All,

I've got code that exports Outlook items to .MSG files that has worked
in all Outlook versions up to Outlook 2007. Unfortunately, this same
code is producing corrupt MSG files in Outlook 2010. Note that this
code is based on the same code from the Microsoft KB article "Save
Message to MSG Compound File" here:
http://support.microsoft.com/kb/171907

The .MSG files exported by our application are about half the size of
the .MSG files that are exported by Outlook itself. When I double
click them on the file system, while Outlook is running I get an error
dialog from Outlook saying "The operation failed". When I try to
open the MSG while Outlook is not running, I get an error dialog
"Cannot start Microsoft Outlook".

Has anyone else noticed this behavior? Are there any changes to MAPI
in Outlook 2010 that I am missing?

Thanks in advance,
-Stuart
Ken Slovak - [MVP - Outlook]
2009-12-23 15:04:22 UTC
Permalink
For Extended MAPI questions I'd recommend posting in
microsoft.public.win32.programmer.messaging where the MAPI people hang out.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by Stuart Bray
Hi All,
I've got code that exports Outlook items to .MSG files that has worked
in all Outlook versions up to Outlook 2007. Unfortunately, this same
code is producing corrupt MSG files in Outlook 2010. Note that this
code is based on the same code from the Microsoft KB article "Save
http://support.microsoft.com/kb/171907
The .MSG files exported by our application are about half the size of
the .MSG files that are exported by Outlook itself. When I double
click them on the file system, while Outlook is running I get an error
dialog from Outlook saying "The operation failed". When I try to
open the MSG while Outlook is not running, I get an error dialog
"Cannot start Microsoft Outlook".
Has anyone else noticed this behavior? Are there any changes to MAPI
in Outlook 2010 that I am missing?
Thanks in advance,
-Stuart
Stuart Bray
2009-12-24 17:46:12 UTC
Permalink
Thanks Ken.

The problem was actually with drag and drop code on Windows 7. The
sample code for exporting Outlook items to MSG on kb171907 still works
just fine for OL 2010.

Cheers!

On Dec 23, 7:04 am, "Ken Slovak - [MVP - Outlook]"
Post by Ken Slovak - [MVP - Outlook]
For Extended MAPI questions I'd recommend posting in
microsoft.public.win32.programmer.messaging where the MAPI people hang out.
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
Post by Stuart Bray
Hi All,
I've got code that exports Outlook items to .MSG files that has worked
in all Outlook versions up to Outlook 2007.   Unfortunately, this same
code is producing corrupt MSG files in Outlook 2010.   Note that this
code is based on the same code from the Microsoft KB article "Save
http://support.microsoft.com/kb/171907
The .MSG files exported by our application are about half the size of
the .MSG files that are exported by Outlook itself.  When I double
click them on the file system, while Outlook is running I get an error
dialog from Outlook saying "The operation failed".   When I try to
open the MSG while Outlook is not running, I get an error dialog
"Cannot start Microsoft Outlook".
Has anyone else noticed this behavior?  Are there any changes to MAPI
in Outlook 2010 that I am missing?
Thanks in advance,
-Stuart
Dmitry Streblechenko
2009-12-26 16:26:39 UTC
Permalink
What are the relevant snippets of your code?
Can you open the MSG file in OutlookSpy (click Misc | OpenIMsgOnIStg)?
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by Stuart Bray
Hi All,
I've got code that exports Outlook items to .MSG files that has worked
in all Outlook versions up to Outlook 2007. Unfortunately, this same
code is producing corrupt MSG files in Outlook 2010. Note that this
code is based on the same code from the Microsoft KB article "Save
http://support.microsoft.com/kb/171907
The .MSG files exported by our application are about half the size of
the .MSG files that are exported by Outlook itself. When I double
click them on the file system, while Outlook is running I get an error
dialog from Outlook saying "The operation failed". When I try to
open the MSG while Outlook is not running, I get an error dialog
"Cannot start Microsoft Outlook".
Has anyone else noticed this behavior? Are there any changes to MAPI
in Outlook 2010 that I am missing?
Thanks in advance,
-Stuart
Loading...