Jump to content
We've recently updated our Privacy Statement, available here ×

how to add a JRComponentElement by code ?


ddaitarn304gmail.com

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...