Strange behaviour for charts and export to pdf function in SWT browser
I am trying to use flexmonster reports from inside a SWT browser, which internally uses IE browser present on system.
I noticed that Charts and export to PDF functionality doesn’t work inside SWT browser unless we do one thing: access the same report on IE11. After that when we freshly access the same page on SWT browser, both the functionalities seem to work fine.
I compared the HTML source for both the cases and they are absolutely same.
Could you please help ?
Thanks and Regards
Honestly saying SWT browser is quite unpopular among our customers and it’s probably the first request for this browser.
We will investigate the issue and inform you about the progress.
Hi Team, any updates on this ?
Thank you for writing. We are still in the investigation process. Could please give us some more specific details? Are there any errors in the stack trace? Do you have any specific configurations for the Eclipse IDE? For now, we recommend you checking the latest version of the IDE. Also, you can try using some other browser as the default.
Waiting for the update from you.
The root cause behind this is: When we open the page in IE 11 and click on Charts, d3.min.js file is loaded and kept in temporary web files location (%userName%\AppData\Local\Microsoft\Windows\Temporary Internet Files) and the functionality runs in both SWT and IE browser. When we close IE (or don’t launch this page in IE at all), this file is deleted and it is not loaded in case we open the page in SWT browser, so charts doesn’t work. Do you think of any workaround ?
Hi, one more update: I tried including d3.min.js in the html page itself:
and the charts worked in SWT browser.
Similar behaviour is for export PDF functionality as well.
Can we include all the required .js files in html page itself ?
Thank you for the update from you. It is nice to hear that you have found a suitable workaround. Yes, you can include all the required files in HTML file.