Hi,
I had an Task file (attached), I create a pst file (attached) which contains it, but when I added the pst to Outlook but when I opened the task from the pst, I saw that the format was changed (and corrupted)
this is the code:
MapiMessage msg = MapiMessage.FromFile(MyTask.msg");
MapiTask task = (MapiTask)msg.ToMapiMessageItem();
using (PersonalStorage pst = PersonalStorage.Create(Roi.pst", FileFormatVersion.Unicode))
{
FolderInfo taskFolder = pst.CreatePredefinedFolder("Tasks", StandardIpmFolder.Tasks);
taskFolder.AddMapiMessageItem(task);
}
I attaceh print screen of the task that I loaded, and of the task after I added the pst on Outlook.
Please yor help,
Thanks,
Roi