Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 6 Monaten, 2 Wochen
Letzter Beitrag:
vor 6 Monaten, 2 Wochen
Beteiligte Autoren:
Jeff Graham, Fabrice Harari

(Solved-almost) Printing HTML Email Content WD 21

Startbeitrag von Jeff Graham am 08.12.2017 20:12

The only way I can find to print HTML Email content is to use HtmlToRtf function with an rtf control. This causes many more pages in the report than if the email was printed from the email application. Also any images are lost. I found this technique in the WD 212 WD Email complete example.

Any suggestions for a better technique?


Re: Printing HTML Email Content WD 21

Hi Jeff,

you could try the following :
- use the chromium activeX in a activex field (there is an example in the french forum, or on the french depository/pcsoft site)
- load your html in it
- print using the activeX command as pdf
- merge that pdf into your report

Best regards

von Fabrice Harari - am 08.12.2017 20:36

Re: Printing HTML Email Content WD 21

Thanks for the suggestion, Fabrice.

That made me think about the fact that my email window displays the html ok and there is an HTML control in reports. So I passed the edit control with html contents as a parameter. I used the EDT_Preview..DisplayedValue property and then set the report HTM..Caption property from that parameter. This works acceptably but paging causes issues with large image content.

I still have some kind of character set issues but I can live with that for now. For example:

Subject: RE: A fix for the Word not opening at the command prompt
Hi Craig

von Jeff Graham - am 09.12.2017 19:01
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.