Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / February 2007

Tip: Looking for answers? Try searching our database.

Open MSG file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johnny E Jensen - 13 Feb 2007 10:40 GMT
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
Brian Tillman - 13 Feb 2007 13:53 GMT
> 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.
Signature

Brian Tillman

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.