Results 1 to 2 of 2

Thread: Can't see the attachment

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    27

    Question Can't see the attachment

    I am posting a form, to which I attach a document by referance.
    When the reader opens the form he cannot see the attachment.
    my code for generating the form:
    <VBCODE>
    Set MyNameSpace = Application.GetNameSpace("MAPI")
    Set ReviewFolder = MyNameSpace.Folders("Mailbox - Snir Herer") 'For test
    Set ReviewItem = ReviewFolder.Items.Add("IPM.Note.test23_snir")

    ReviewItem.userProperties.find("Document Name").value = item.userProperties.find("Document Name").value
    ReviewItem.Subject = "Review of: " & item.userProperties.find("Document Name").value
    ReviewItem.To = Item.userProperties.find("Reviewers").value
    ReviewItem.Attachments.add "W:\Test\Review\" & item.userProperties.find("Document Name").value, olByReference

    ReviewItem.Display

    item.save
    item.close(2)

    </VBCODE>

    When the form is displayed I can see the attachment, but the reader cannot see the attachment.
    How can I fix it?

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    27

    Resolved Re: Can't see the attachment

    Solved it, I set the third parameter to be 1 parameter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width