create chart in docx

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
oferg
Posts: 2
Joined: Fri May 26, 2017 3:48 pm
antibot: No, of course not.

create chart in docx

Post by oferg » Fri May 26, 2017 3:51 pm

Hello guys
Okay, so I'll start from scratch. I do a web project of generating security reports. I'm using a DOCX template that I edit in accordance with the findings I put into the report I am filling. I should also display a graph with quantities of malfunctions MAJOR, MINOR, CRITICAL, etc.

I do all this in JAVA(running on apache tomcat "8") with a directory called a scriptlet 4 docx. I have a bit of difficulty with the creation of chart in JAVA and its implementation in the WORD file I edit.

how can i create a chart in a docx file?
tnx

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: create chart in docx

Post by david.gilbert » Fri May 26, 2017 6:57 pm

What do you use for the Word file creation? Maybe Apache POI? I don't have experience creating Word files from Java, but if you can embed either image files (e.g. PNG) or vector formats (such as PDF or SVG) then JFreeChart can certainly create those formats easily (out-of-the-box for PNG, and using JFreeSVG for SVG and OrsonPDF for PDF files). I'd research how easy it is to embed PDF or SVG files into the Word document you are creating...and if that's not possible, then image files.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

oferg
Posts: 2
Joined: Fri May 26, 2017 3:48 pm
antibot: No, of course not.

Re: create chart in docx

Post by oferg » Fri May 26, 2017 10:30 pm

his
i'm using scriptlet 4 docx to edit the word file

Locked