Forum Stats

  • 3,840,394 Users
  • 2,262,599 Discussions
  • 7,901,262 Comments

Discussions

Netbeans Report creation...

931913
931913 Member Posts: 3
edited Jun 21, 2012 9:42AM in Java Desktop Applications
hi ,

I am creating a desktop application for database management , and using oracle 10g as my back end. Now i need to generate reports on button press after specifying the necessary details. I used the ireports and able to generate reports too, but i dont knw how to bring that into a java frame and do the coding and generate reports dynamically on button click.

Can you kindly help me with this.

Answers

  • morgalr
    morgalr Member Posts: 457
    Generate your report data to a table, then just populate a form with your results.
  • 931913
    931913 Member Posts: 3
    I appreciate you for the response
    but
    no , i dont want to do that because i need to take a print of that report in a later stage so....i need to create a report in the other way itself......
  • morgalr
    morgalr Member Posts: 457
    You cannot read from a table to make your life a little easier?

    OK, here is how it's done:

    1 - make the PL/SQL query you need to create your recordset, yes, as ugly and complicated as it needs to be to supply you with all of the data you you will need in your report.
    2 - make a form that you want that gives you the layout for the report you need.
    3 - poplulate the form from your recordset preduced by the query in step #1.
    4 - print the populated form.
This discussion has been closed.