|
-
Jul 3rd, 2005, 02:32 AM
#1
Thread Starter
Junior Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|