problem with Attachments

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
 
S

Sue Mosher [MVP]

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
 
D

Damian

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
 
S

Sue Mosher [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top