D
Dan Cernoch
here is the code....
while(olMail.Attachments.Count != 0)
{
Outlook.Attachment olAtt = (Outlook.Attachment) ->cont.
olMail.Attachments[1];
Console.WriteLine(olAtt.FileName);
olAtt.Delete();
}
here is what happens.
All FileNames are printed to screen
No Attachments are deleted.
Thoughts?
Thanks,
Dan
while(olMail.Attachments.Count != 0)
{
Outlook.Attachment olAtt = (Outlook.Attachment) ->cont.
olMail.Attachments[1];
Console.WriteLine(olAtt.FileName);
olAtt.Delete();
}
here is what happens.
All FileNames are printed to screen
No Attachments are deleted.
Thoughts?
Thanks,
Dan