Pictures can not be exported as embedded streams. During export to HTML, VPE writes pictures as additional external files. This is the default. By setting the property HtmlCopyImages = False you can instruct VPE to write links to the original images into the generated HTML file (i.e. the original paths from which the prictures were read into the VPE document). This is fine for creating HTML files on servers, but does not help for sending a document as HTML by e-mail.
For sending e-mails, we recommend to attach VPE documents as .PDF or as native .VPE files.
What about the CSS code in the html file, that the method WriteDoc generates. Is it possible to keep the correct format(text size, spacing etc.), when e-mailing the html file as attached in order to show it directly in the e-mail text?
I do the following: - ClearMailAttachments - Set MailText to "" - AddMailAttachment
This shows the html file in the e-mail text and not as attached, but with changed appearances.
HTML is not capable of doing the same that VPE can do. Therefore documents exported from VPE to HTML are always a compromise. VPE does a fine job when exporting to HTML, but the results are not 100% identical to the original VPE document. The same applies to OpenText (OpenOffice) export.
NOTE: Attaching a HTML file to an e-mail works with some e-mail clients, so that the HTML file is shown as message body of the e-mail. But not all e-mail clients do that.