problem with Attachments

  • Thread starter Thread starter Damian
  • Start date Start date
D

Damian

Hi
I've got sokme problem with attachments
I need to export a full file path of attachments (
_AttachmentPtr pAtt;
......
pAtt->get_FileName(&name);
pAtt->get_PathName(&name);
). But that functions doesnt work properly in my opinion, could anybody help
me?

Thanks
 
There most likely is no full path. Once a file is attached, Outlook neither knows nor cares what the original path was.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
So how dop I know, where to find the attachment on the disc. Or how to get
them (as a file?). I need to export them to database and dont want to export
attachment but just a path to it

Uzytkownik "Sue Mosher [MVP]" <[email protected]> napisal w wiadomosci
There most likely is no full path. Once a file is attached, Outlook neither
knows nor cares what the original path was.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
The attachment is in the mail message. You must use the Attachment.SaveAsFile method to store it as a system file before you can do anything else with it.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top