PC Review


Reply
Thread Tools Rate Thread

.CreateItemFromTemplate

 
 
Dean
Guest
Posts: n/a
 
      29th Oct 2004
I've written a service that intercepts writes of .MSG (Outlook format)
using the FileSystemWatcher component. Everything works fine if the
..MSG files are in MailItem format, however if the .MSG file is
PostItem format it hangs the .CreateItemFromTemplate Method.

Any suggestions are welcome.

CODE:

'Prepare the Outlook Object
OL = New Outlook.Application

olNameSpace = OL.GetNamespace("MAPI")
olNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
olNameSpace.Logon("", "", False, False)

'Open the .MSG file
Msg = OL.CreateItemFromTemplate(sFilename)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 AM.