pacoabato Posted November 17, 2014 Share Posted November 17, 2014 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. Link to comment Share on other sites More sharing options...
pacoabato Posted November 19, 2014 Author Share Posted November 19, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now