Jump to content
JasperReports Library 7.0 is now available ×

Draw points into word generated report


Recommended Posts


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.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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);[/code]


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...