Dragan --
I'm getting kind of lost here. I'm trying to end up with an automated process which will allow me to send an email with the contents of a small Excel spreadsheet inserted into the message (instead of as an attachment).
With Sergey's help, I've been able to read some HTML which I can save into a temp file which Word can open and display properly. That tells me (I think) that I'm extracting the HTML from the clipboard properly.
Then, if I save that as an .HTM file, and send the contents in my email, it appears that my email will arrive looking as desired.
(I don't have all this working yet, so am not sure if it will all work, but it seems like it will).
Granted, these seems circuitous, but, so far, it's the closest I've come.
Jim
>>Interesting ...
>>
>>First of all, I guess the extension must be HTM for .CreateMHTMLBody to work. (not terribly surprising).
>>
>>However, using this file, I still get the odd behaviors noted earlier.
>>
>>However, if I open Word and then re-save the file, it works just fine in my message.
>
>The point here is that if you open it in Word, it will fill in the blanks for you and supply a lot of inline styling. Word is not something I'd call a neutral observer.
>
>You should open your favorite web browser (and also the other browser, just to be sure) and drag-n-drop the file into each, then see the results. Or just open it in Notepad (or fox, with modify command) and see how it looks, is there any malformed HTML etc. If you have a real HTML editor with a validator, that'd be even better.
Jim Nelson
Newbury Park, CA