JReport Beans Brief Introduction

In the current JReport system, we provide the following beans to enable user's Java applications to call the JReport programs:

The JRport Engine bean (JREngine) is used to generate the JReport report result file.  This bean will take a report name, a catalog name and a parameter values used in the report as the input parameters, then generate the report result file on the current path.  The generated result file could be read by either the JReport Viewer or the JReport Result Viewer bean.

The JReport Viewer beans are thin client viewer beans which can view a report via the JReport Server.  There are two thin client viewer beans, one can be used to view the JReport report in one step and the other in two steps.  The one step bean is called JRDirectViewer and the two steps bean is called JRPrepareViewer and JRRunViewer.  The only difference between these two beans is in the way of getting the report parameter values if the report contains parameter(s).  The first bean will pop up a dialog box to ask the user to input the parameter values while the second bean will call the JRPrepareViewer bean first to get the parameters information and then call the JRRunviewer bean and pass the report parameter values in a string format as one of its (the bean's) input parameters.

The JReport Result Viewer bean (JRResultViewer) is used to view the report result file generated by the JReport engine.  When you run this bean, you need to only provide the report result file name as the input parameter.

For more detailed information on how to call these beans, please refer to each bean's specification page.