![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I have been using Outlook Redemption for about a year now and it's been incredibly useful in the development of an add-in for Outlook 2K/XP/2003. I am trying to retrieve the e-mail (well actually, only the recipients, body and attachments) that is being composed by the user and export an RFC822 version of it. For months my code was actually extracting the various parts of the message I needed, reconstructing it using CDO (cdosys.dll), and getting the RFC822 stream that CDO would provide. It worked "fairly" well (considering the fact that I had to deal with different body formats, different attachment types, etc.). But then I found out there was a much easier way to do it: simply use the SaveAs() method of a SafeMailItem object. It litterally cut my code in half, it is much cleaner, faster, efficient! But I recently found a bug I had never encountered with that method. On two machines running Windows XP with Outlook 2000, calling the SaveAs() method freezes Outlook -- we have to kill it using the task manager. (The issue is not related specifically to either Windows XP nor Outlook 2000, because it worked fine on other computers running them.) It is also not an issue with filename or write permissions, because I can OpenForOutput/Print/Close the same file in plain VB. I know of a couple of ways to make Outlook or the add-in crash when trying to save a MailItem (like using Outlook's built-in encryption, and then trying to save it programmatically), but this one, I had never encountered. I am now clueless about what I should do to fix this issue. I don't want to have to go back to my old bulky code... What are the possible reasons for this SaveAs() method to fail or to have a similar behavior? (I hope Dmitry Streblechenko sees this!) Thanks!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook freezes on Redemption SaveAs | [email protected] | Add-ins for Outlook | 5 | April 28th 06 12:46 AM |
Outlook calendar stops responding/freezes | Jubee | Outlook - Calandaring | 0 | April 10th 06 03:17 PM |
Outlook Express 6 freezes when I begin to type a new message. | PC User | Outlook Express | 1 | January 14th 06 05:25 PM |
Monthly calendar view freezes Outlook! | Der_Techniker | Outlook - Calandaring | 1 | January 12th 06 05:48 PM |
my outlook express freezes | Vern | Outlook - Installation | 3 | January 10th 06 09:55 PM |