|
-
Sep 7th, 2005, 10:12 PM
#1
Thread Starter
Member
Removing outlook attachment from Word code
Hello everyone,
I am working on a project which is in Word. The project involves creating an Outlook mail message from Word and attaching the current word document as a PDF attachment. After the message has been sent, the attachment must be removed from the message otherwise it causes space issues for the mailbox on the server. I am able to remove the attachment by accessing the Sent Items folder.
However, my problem is, once the email message has been created, the code in word is not able to listen to the events happening with the message. So, for example, if the user decides to cancel the message, my word code has no idea that cancel has been pressed and it still keeps searching in the Sent Items folder in the hope that the message will sooner or later turn up. If after a set period of time (say 2 minutes) the message still hasn't appeared in the Sent Items folder, the code will give up. But this delay is causing word to be unavailable during that time period and is causing frustration for users. Can anyone give some ideas about how to trap the events of Outlook from Word?? I could do it from Outlook but I don't know how to let Outlook just trust my code and not run any viruses.
Thanks in Adv.
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
|