Help!

Open MSG file


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Interoperability RSS
Next:  Problem Sending Email From Outlook 2007  
Author Message
Johnny E Jensen
External


Since: Feb 13, 2007
Posts: 1



PostPosted: Tue Feb 13, 2007 11:40 am    Post subject: Open MSG file
Archived from groups: microsoft>public>outlook>interop (more info?)

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
Back to top
Brian Tillman
External


Since: Mar 29, 2005
Posts: 20862



PostPosted: Tue Feb 13, 2007 11:40 am    Post subject: Re: Open MSG file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Johnny E Jensen <jej.RemoveThis@winner-crm.dk> wrote:

> 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.
--
Brian Tillman
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Interoperability All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum