Jasper Report Part 3 : Simple Report


In this post i will tell you to create an simple jasper report.
To create an simple Jasper report first you create an connectivity with your database. see post.
  • Select New Report from File menu

    •  Select size of report click next. Then enter name of Report, Select Location and press next and then Finish.
    •  Select your Database connection
    • Then we need to create an query which access data from database for display into report.


      •  Then you Report query popup is opened, Use Query Designer button to build query.

        • Select table(s), then select fields from table and press Ok.
        •  See ready query into box and press Ok.
        •  These Fields are listed into Report Inspector > Fields

          •  Now Just Drag and Drop These fields into Details1 band in the report, with fields Title of fields are appears into Column Header band in the report, edit this title as you want with double clicking on it. Realign Header and Fields. Adjust the with of Details1 Band.



          •  Enter Title for Report using Static text element from Palette at right side of working area. Change Font and size and style of text or Column Header to make attractive report.



          • To compile the report click "Compile Report"  button.
          •  To see preview of your report go to preview mode by clicking on preview button


          No comments:

          Post a Comment