G
Guest
Here's a unique problem I hope someone can answer for me.
Environment:
Outlook 2003 (SP2)
Windows XP (SP2)
My VS2005 C++ program to manipulate Outlook via CDO Message Store
My VS2005 C++ program to manipulate Outlook via Oultook Object Model
Requirements:
- I need to be able to directly update the RTF in the body of an outlook
item Task, JournalItem, Contact, etc. Let's focus on JournalItem. I have
plenty of examples that I have successfully used in earlier versions of
Outlook like 2002 without problems.
Setting:
- I use Outlook Object API within C++ to create a new message and write all
the properties to the item that I need using the same. When it comes to the
Body of the item, I use the CDO API to write directly to PR_RTF_COMPRESSED
and at the end of my logic I run RTFSync to sync it to my PR_BODY.
Problem:
My newly created journal item or my existing recently modified journal item
accepts the RTF code, but it is not displayed or accepted by the journalitem
even after I call _journalitemptr's Save() and/or Close(olSave) functions.
Suspect:
- It seams like RTFSync and SaveChanges(KEEP_OPEN_READWRITE) do not return
an error and update the journalitem object, but they do not update the
display within outlook either.
What am I missing?
Environment:
Outlook 2003 (SP2)
Windows XP (SP2)
My VS2005 C++ program to manipulate Outlook via CDO Message Store
My VS2005 C++ program to manipulate Outlook via Oultook Object Model
Requirements:
- I need to be able to directly update the RTF in the body of an outlook
item Task, JournalItem, Contact, etc. Let's focus on JournalItem. I have
plenty of examples that I have successfully used in earlier versions of
Outlook like 2002 without problems.
Setting:
- I use Outlook Object API within C++ to create a new message and write all
the properties to the item that I need using the same. When it comes to the
Body of the item, I use the CDO API to write directly to PR_RTF_COMPRESSED
and at the end of my logic I run RTFSync to sync it to my PR_BODY.
Problem:
My newly created journal item or my existing recently modified journal item
accepts the RTF code, but it is not displayed or accepted by the journalitem
even after I call _journalitemptr's Save() and/or Close(olSave) functions.
Suspect:
- It seams like RTFSync and SaveChanges(KEEP_OPEN_READWRITE) do not return
an error and update the journalitem object, but they do not update the
display within outlook either.
What am I missing?