Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / General MS Word Questions / September 2003

Tip: Looking for answers? Try searching our database.

Using InsertFile method of the Range object to add attachments to email created from inside Word.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Viktor Barabanov - 08 Sep 2003 19:28 GMT
Hi everybody,
I have the following problem - I need to create the mail message from inside
the Word (programatically, using Word as the automation server) then I need
to to attach to this message a bunch of other attachments. The MailMerge
object doesn't support any attachments.
I tried to use InsertFile method of the Range object - it receives the
parameter Attachment and accordig to MSDN if this parameter is True, the
method attaches the specified file to the email message -  but this method
always inserts the text from specified (attached) file into the body of the
main file (main file - the parent of the Range object). The method
AddOLEObject of the Shape method appeared to be a bit more useful - at least
it embedds the specified file into the body of the main documet as a nice
icon, which can activate the embedded file. But when i try to send the file
with the embedded object - the word strips the embedded object and in the
email message I have only the icon which is no longer pointing to the
embedded file.

So the question is - is it possible at all to create programatically Word
document, attach soem other documents to it and then to send it by email
without using specific email client as an automation server? seems that it
is not possible - email message it is just html message and there is no
means to attach something else to html document.

Thanks for your time and consideration
Viktor Barabanov
Doug Robbins - Word MVP - 09 Sep 2003 10:42 GMT
Identical post in mailmerge.fields has been answered.  Please do not
multiple post.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
> Hi everybody,
> I have the following problem - I need to create the mail message from inside
[quoted text clipped - 21 lines]
> Thanks for your time and consideration
> Viktor Barabanov
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.