Issue:
How to render the Components Pro elements such as Widgets Pro, Maps Pro, Charts Pro in a report?
Solution:
To configure TIBCO Jaspersoft® Studio to use PhantomJS (javascript engine) for Pro Charts, including Pro Widgets and Pro Maps:
Download phantomjs-2.1.1-windows.zip (http://phantomjs.org/) and extract contents to C:phantomjs-2.1.1-windows
In Studio, navigate to Window -> Preferences -> Jaspersoft Studio -> Properties and add:
com.jaspersoft.jasperreports.fusion.phantomjs.executable.path=C:\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe com.jaspersoft.jasperreports.fusion.charts.render.type=html5 com.jaspersoft.jasperreports.fusion.maps.render.type=html5 com.jaspersoft.jasperreports.fusion.widgets.render.type=html5
These settings will render the Pro components using HTML5 renderer.
Note: If you are encountering the following error after applying the steps:
"Cannot run program "C:\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe" (in directory "C:\users\<profile>\AppData\Local\Temp\x"): CreateProcess error=2, The system cannot find the file specified.
Then check that you do not have double root paths after extracting the contents in step 1.
Incorrect: C:phantomjs-2.1.1-windowsphantomjs-2.1.1-windowsbin
Correct: C:phantomjs-2.1.1-windowsbin
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now