Draw points into word generated report

Hello,

I'm generating a report and exporting it to MS Word format (programatically). The report has an image and I want to draw points (as indenpendent objects, not really drawn in the image) over the image that can later be selected and moved using MS Word application.

Is it possible to add point or rectangle elements to the report to achieve my target?

Thank you very much.

pacoabato's picture
Joined: Jun 4 2013 - 4:03am
Last seen: 1 year 8 months ago

This seems to work for pdf exported documents, but fails for docx ones:

JRBasePrintEllipse elipse = new JRBasePrintEllipse(jasperPrint.getDefaultStyleProvider());
elipse.setBackcolor(Color.RED);
elipse.setForecolor(Color.RED);
elipse.setX(50);
elipse.setY(50);
elipse.setWidth(10);
elipse.setHeight(10);
elipse.setFill(FillEnum.SOLID);
jasperPrint.getPages().get(0).addElement(elipse);

pacoabato - 8 years 4 months ago

0 Answers:

No answers yet
Feedback