send email

  

Hi,

 I have used the outsystems create a webpage with some charts in it? And I have used the get current page content action to fetch the contents of the page, then use the rich mail send to send them in the email.
But I couldn`t send the charts in the email. How to fix it? Thanks a lot.
Sending images/graphs via mail is always a problem as not all mail clients behave in the same way.
I think the best solution would be to add the graphs as attachment to the mails as a picture. 
That "low-level" way is something all mail clients support.
Hi,
Agreed with curt , additionaly you can convert your html to pdf (already availabel with platform) and than attach that pdf as single document in mail and send.

Regards,
-PJ-


Pramod Jain wrote:
Hi,
Agreed with curt , additionaly you can convert your html to pdf (already availabel with platform) and than attach that pdf as single document in mail and send.

Regards,
-PJ-

 
 Hi Pramod,

How can I convert my html to pdf? I didn`t find it on the platform, thank you.
 

eric wang wrote:
Pramod Jain wrote:
Hi,
Agreed with curt , additionaly you can convert your html to pdf (already availabel with platform) and than attach that pdf as single document in mail and send.

Regards,
-PJ-

 
 Hi Pramod,

How can I convert my html to pdf? I didn`t find it on the platform, thank you.
 
 
 Try this , available in forge.

https://www.outsystems.com/forge/component/209/html2pdfconverter/

Regards,
-PJ-
 
Pramod Jain wrote:
eric wang wrote:
Pramod Jain wrote:
Hi,
Agreed with curt , additionaly you can convert your html to pdf (already availabel with platform) and than attach that pdf as single document in mail and send.

Regards,
-PJ-

 
 Hi Pramod,

How can I convert my html to pdf? I didn`t find it on the platform, thank you.
 
 
 Try this , available in forge.

https://www.outsystems.com/forge/component/209/html2pdfconverter/

Regards,
-PJ-
 
 Thank you. I have used "URLtoPDF_Direct" action,  but still the charts can`t be displayed in the PDF file.
Does the "URLtoPDF_Extended" will solve this problem? But I don`t know how to set the extendedconfiguration data? Thank you.
 

Hi eric,
Does your charts are appering on the screen? Means have you seen the charts in html screen before convirting them to pdf?


Regards
-PJ-
Pramod Jain wrote:
Hi eric,
Does your charts are appering on the screen? Means have you seen the charts in html screen before convirting them to pdf?


Regards
-PJ-
Thanks a lot for the reply. Yes, the charts are showing on the screen, and I can see the html of the charts.
 

If it is possible can you share your url so taht i can try printing here to pdf?

Regards
-PJ-
I'm not sure the html2pdf component is very good at the SGL used for the charts. Have you tried to start the EXE locally, manually?
Be sure that you provide a complete URL of the page (including all parameters).  

Also note: Html2PDF will create a PDF snapshot of the URL provided, NOT necessarily what you see on your screen when the extension is executed.  That means any changes to the data shown on your page through an AJAX refresh, will likely not be part of the URL and therefore not rendered in the PDF.

To make it work, you will need to generate the screen you want converted to a pdf via the Prep (or throug a Submit type screen action).

Hope this helps.
Marco


Pramod Jain wrote:
Hi eric,
Does your charts are appering on the screen? Means have you seen the charts in html screen before convirting them to pdf?


Regards
-PJ-
 Thanks a lot for the reply.
 I have saved the url as HomePage.html, and attach it here.
There should be two pie charts here, but it seems I can`t see it when open the html file.
eric,

A quick glance at the HTML shows there's no chart data in it. Also, when opening the HTML there's tons of errors because of missing jquery and Highcharts.
Kilian Hekhuis wrote:
eric,

A quick glance at the HTML shows there's no chart data in it. Also, when opening the HTML there's tons of errors because of missing jquery and Highcharts.
 Hi Kilian,

But I did draw two pie charts by using the OutSystems interface on the webpage. And I have attached the pic here. I didn`t get why there is no chart data in html. Will you please give some suggestions on how to fix it.
Thank you.
 

Hi eric,

I checked again, and the data is actually there. However, the HTML references many other files, with an absolute path to somewhere presumably on your desktop. That's why it doesn't work. However, your initial question wasn't about saving a HTML file of the page, but converting it to PDF, right?
Kilian Hekhuis wrote:
Hi eric,

I checked again, and the data is actually there. However, the HTML references many other files, with an absolute path to somewhere presumably on your desktop. That's why it doesn't work. However, your initial question wasn't about saving a HTML file of the page, but converting it to PDF, right?
 Thank you. My initial question was send this page`s content in email. And I got the suggestion is to convert it
to PDF firstly, then send it in the attachment. But it seems not work. 
 

eric,

The html2pdf forge component uses wkhtmltopdf. You could first manually try to save a page with it, and see if that works. I've done the same in the past, and concluded it didn't quite work (chart lines were too fat), but perhaps you are lucky.
Kilian Hekhuis wrote:
eric,

The html2pdf forge component uses wkhtmltopdf. You could first manually try to save a page with it, and see if that works. I've done the same in the past, and concluded it didn't quite work (chart lines were too fat), but perhaps you are lucky.
 Hi Kilian,

Thank you. I`ve tried it in my side, but it`s not working. The pie charts are still blank.
 

Solution
eric,

That's too bad! In that case you're royally screwed :). As a last resort, you could try PhantomJS. If it works to create the right output manually, perhaps you can create an extension to interface with it.
Solution
Kilian Hekhuis wrote:
eric,

That's too bad! In that case you're royally screwed :). As a last resort, you could try PhantomJS. If it works to create the right output manually, perhaps you can create an extension to interface with it.
 Thanks a lot. It works!
 

That's great to hear. I've used it in the past for some tests, and it handles SVG much better than wkhtmltopdf. Unfortunately. as far as I'm aware, there's no Forge component for it, but I don't think it's too difficult to create.