how to add a JRComponentElement by code ?

0

I know how to add elements by code, for example, to add a text element:

JRPrintPage jrPage      = new JRBasePrintPage();
txt = new JRBasePrintText(null);
jrPage.addElement(txt);

 

but how do I add a component element ? I want to add a barcode4j element, inspecting a designed report I found barcode4j is wrapped as a component inside a "JRBaseComponentElement" , but I don't know how to add manually

ddaitarn304@gmail.com's picture
Joined: Sep 9 2015 - 6:39am
Last seen: 5 days 10 hours ago

0 Answers:

No answers yet
Feedback
randomness