V
Viktor Barabanov
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
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