I´m using a Chart Generator to create pie and bar charts, and I need to insert them into an email created with Emailer inside the proper HTML syntaxis.
I tried to write the charts into a png writer but I cannot link it to a parameter so it can be there.
I also tried to set the image into a sharepoint (corporate) and use the url to link the image but it still do not work.
You can write the chart as a PNG using the FeatureWriter, then embed the PNG into HTML using the HTMLReportGenerator:
The TempPathnameCreator will create a temporary folder to hold the PNG. The folder will be deleted once the workspace finishes, but the image will have been embedded into the HTML by then. This removes the need for any manual cleanup.
I am attaching a workspace snippet to illustrate the process.
You can write the chart as a PNG using the FeatureWriter, then embed the PNG into HTML using the HTMLReportGenerator:
The TempPathnameCreator will create a temporary folder to hold the PNG. The folder will be deleted once the workspace finishes, but the image will have been embedded into the HTML by then. This removes the need for any manual cleanup.
I am attaching a workspace snippet to illustrate the process.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.