Embedded HTML picture

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Embedded HTML picture

Postby kbn » Wed Aug 24, 2011 3:24 pm

Hello experts :)

Is it possible to create a html file with embedded pictures? I want to send out dycodoc documents on e-mail, but without attaching them.

/Regards
kbn
 
Posts: 2
Joined: Wed Jun 15, 2011 7:40 am

Re: Embedded HTML picture

Postby IDEAL Software Support » Thu Aug 25, 2011 7:00 am

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.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Embedded HTML picture

Postby kbn » Thu Aug 25, 2011 7:56 am

Thank you for your answer.

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.

/Regards
kbn
 
Posts: 2
Joined: Wed Jun 15, 2011 7:40 am

Re: Embedded HTML picture

Postby IDEAL Software Support » Fri Aug 26, 2011 9:16 am

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.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 16 guests

cron