I am trying to loop thru Inbox and select any one email and save it as
a RTF file. Here is the code I am using
Outlook.Explorer myOutlookExplorer =
myOutlookApp.Explorers.Add(myOutlookNamespace.GetD efaultFolder(Outlook.OlDefaultFolders.olFolderInbo x),
Outlook.OlFolderDisplayMode.olFolderDisplayNormal) ;
myOutlookExplorer.Activate();
Outlook.MailItem myMailItem = (Outlook.MailItem)
myOutlookExplorer.CurrentFolder.Items.Item(1);
myMailItem.SaveAs("D:\temp.rf", OlSaveAsType.olRTF);
This is the error message I am getting .
Additional information: Could not complete the operation. One or more
parameter values are not valid.
Any suggestions will be appreciated.
Thanks