PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Printing HTML Email Content WD 21
Printing HTML Email Content WD 21
Started by Jeff Graham, Dec., 08 2017 9:12 PM - 2 replies
Connect yourself…
Jeff Graham
#1
Posted on December, 08 2017 - 9:12 PM
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?
Report
0
0
Fabrice Harari
#2
Posted on December, 08 2017 - 9:36 PM
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
Report
0
0
Jeff Graham
#3
Posted on December, 09 2017 - 8:01 PM
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:
Quote
Subject: RE: A fix for the Word not opening at the command prompt
Â
Hi Craig
Â
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text