CreateItemFromTemplate InFolder parameter

V

Vlado

Hi all!

I have encountered a problem using the CreateItemFromTemplate method.
I am using Outlook to save messages in .msg files and later opening
those files, also with outlook.

If i have a local copy of the .msg file and call the
CreateItemFromTemplate method, the message is correctly created and
can be displayed. If i save it, a new message is created in the Drafts
folder. I have seen, that the newly created item is transported back
to the Exchange server, but actually the item is only opened on the
local machine! Why does it need to be transported to the Exchange
server? And then, where is it saved on the exchange server, because i
cannot see it? Can i open the .msg file so, that it will be not
transported (uploaded) to the Exchange server?

And also the InFolder parameter of the method is not working! I can
see no difference if i ommit the folder or if i specify it. I have
tried many combinations: default folder, PST folders, public folders.
But no difference!
What is exactly the type of this parameter? In the documentation a
Variant is specified? Is it in real world an Outlook.MAPIFolder?

Thank in advance for any help!

Vlado
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top