Open MSG file

  • Thread starter Thread starter Johnny E Jensen
  • Start date Start date
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
 
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.
 
Back
Top