Ask a questionAsk a question
 

AnswerObtain the full path of the attached file.

  • Monday, November 02, 2009 3:04 PMRimidalv Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am writting add-in for Outlook 2007.
    When I am subscribed to ItemEvents_10_Event.BeforeAttachmentWriteToTempFile Event, and the event handler is being executed, the attachment object (Attachment) is passed as param. With Attachment.FileName i can take the name of the attached file. Attachment.FullPath must return the full path of the attached file, but it is empty.
    Does anubody knows how to take the full path of the attached file.

    Thanks in advance
    Rimidalv

Answers

  • Thursday, November 05, 2009 8:35 AMBessie ZhaoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Rimidalv,

    I also have a test in my said, PathName property of an attachment returns null. As Sue said in this link, as soon as a file is attached to a mail, it is nothing to do with the original file. So PathName property of an attachment is null.

    Best regards,
    Bessie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

All Replies

  • Thursday, November 05, 2009 8:35 AMBessie ZhaoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Rimidalv,

    I also have a test in my said, PathName property of an attachment returns null. As Sue said in this link, as soon as a file is attached to a mail, it is nothing to do with the original file. So PathName property of an attachment is null.

    Best regards,
    Bessie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.