A friend's project uses Fusionchart, and it needs to provide multiple reports for word downloads.
No doubt, it's just a tricky question.
Fusionchart provides server-side and client-generated images, all based on client-side display of flash.
Friends of the project is based on Linux, office itself that set of COM mechanism is no way to call through Jacob.
Pure Java Operations Word,poi and docx4j, you can generate Word documents, table, insert pictures.
A feasible idea is to click on the download report, first in a new page to open each flash chart, and then call the Fusoinchart function to generate pictures on the server side,
Finally JS calls the servlet to generate DOC, and inserts the pictures from the previous step into the document.
This curve of saving the nation's strategy performance is very low.
The
second idea is to insert flash directly into Word as OLE in Word and to mix with other content. This method should be OK, the word is open to real-time rendering flash.
But found word if use OLE Doc way, can't use HWPF, can only own a little bit of biff file, this is really bad to do, and also don't know whether OLE go in to show.
Give up. PS: found that WSPH processing PPT features a simple support for ActiveX ... I'll go..
The
third idea is to get the data generated chart, directly using the Office chart function, but unfortunately found HWPF did not have this function, HSSF processing Excel features.
The last method is relatively simple and feasible, the performance is fair, the backstage uses Jfreechart to generate the picture, then produces the Word document.
The downside is that the chart style is inconsistent with fusion. The Jfree is too ugly. But this is the most appropriate way to think about it at the moment.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.