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

Visual component support?


christiaan_se

Recommended Posts

Hi,

can someone elaborate on the feature:

- generic component support to allow extending the functionality of the
JasperReports engine by plugging-in custom-made visual components that
would take data as input and produce content that is embedded into the
resulting documents;

What does it do and how can I use it? (eg. can I embed swing components in the report?)

kind regards,

Christiaan

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Component support allows JasperReports users to design their own custom report element types.  For instance, one could design a chart report component that uses a different (than JFreeChart) charting engine.  Custom components are included in report templates.

Along with report components, generic print element have also been introduced.  Such elements can be included in generated reports and are meant to be managed at export time by custom handlers.  The goal of print elements is to allow report exporters to generate non-standard output, i.e. output that cannot be generated by the vanilla report exporters.  For instance, generic print elements can be used to include Flash movies in report HTML export.

You can check the "barcode", "genericelement", "jchartscomponent" and "openflashchart" samples (the last one is only currently present in the JR SVN trunk) to see what custom components and generic elements can do.

Regarding your specific question, you might be able in the future to include Swing-based generic print elements in a report, although you would have to find a solution for exporting such elements to formats like PDF or HTML (if you're interested in such output).  I said in the future because for the moment only the HTML exporter supports generic element handlers.

Regards,

Lucian

Link to comment
Share on other sites

  • 4 months later...

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