Open MSG file

J

Johnny E Jensen

Hej Group

I am using the CreateItemFromTemplate to open a saved MSG file. My code is:

object objFalse = false;

object objInbox =
_objNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);

Outlook.MailItem objMail =
(Outlook.MailItem)_objApplication.CreateItemFromTemplate(_strFilename,
objInbox);

objMail.Display(objFalse);


When the mail item is displayed i'll get this anoying message 'Your current
security settings prohibit running ActiveX controls on this page. As a
result, the page may not display correctly.'
And right after i click the OK button, my signature is inserted into the
mail (at the buttom) - can this be avoided somehow?

Kind regards
Johnny E. Jensen
 
B

Brian Tillman

Johnny E Jensen said:
I am using the CreateItemFromTemplate to open a saved MSG file. My
code is:

news://msnews.microsoft.com/microsoft.public.outlook.program_vba or
news://msnews.microsoft.com/microsoft.public.outlook.program_addins would be
better places to discuss code.
 

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