Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7709641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:54:46+00:00 2026-06-01T00:54:46+00:00

This is my first time to create a report using iReport plugin in Netbeans

  • 0

This is my first time to create a report using iReport plugin in Netbeans 7.1. I have all the records that I need (records were stored in a TableModel) and I want it to set as the datasource to an empty report.

Here’s what I did so far:

1.) I have a TableModel from a ResultSet. (fields: StudentID, FullName, SectionName)

        private TableModel ConvertResultSetToTableModel(ResultSet rs)
        {
             TableModel tb;
             ... // codes here
             return tb;
        }

2.) I added an EmptyReport on my project. The reason why it’s empty is because I do not want iReport to connect to my database server.

Adding Empty Report

3.) This is my sample report (no elegant design yet). How can I bind or fill the fields of the TableModel (fields: StudentID, FullName, SectionName) to the TextField of the iReport ($F{StudentID}, $F{FullName}, $F{SectionName})? And how can I also directly set the $F{CourseName} TextField from a local string variable?

Sample Report

I hope I made everything clear here. Please help. Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:54:48+00:00Added an answer on June 1, 2026 at 12:54 am

    This would be the answer to your question

    Jasper reports provides implementation that makes the task of generating reports from tabular formats simple in Swing
    applications. In this demonstrations, we will be using Jasper reports 3.6.1, Netbeans 6.1 and Ireport 3.6.1.

    Try this code

        private void generateReports(String name, Map param)
    {
            try
            {
                    String source = "C:/sabonay/jasperreports/" + name + ".jrxml";
                    if (new File(source).exists() == false)
                    {
                            xputils.showMessage("Please go to setting and Choose report Source");
                            return;
                    }
    
                    JasperReport jasperReport = JasperCompileManager.compileReport(source);
                    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, param, new JRTableModelDataSource(tbProducts.getModel()));
    
                    JasperViewer.viewReport(jasperPrint, false);
    
            }
            catch (Exception e)
            {
                    e.printStackTrace();
                    System.out.println("reports Error  " + e.toString());
    
            }
    }
    

    For more Info Visit this link…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time using XSLT. I'm trying to create a file that
This is my first time using joomla. I don't know if I'm using the
This is my first time with Web services. I have to develop web services
this is my first time posting here, I have a question which I have
This is the first time ever I'm using AJAX, and I want to do
I need to create a crystal report that shows the address label of the
this is the first time I have tried this so I am probably missing
I have a requirement to create a report that is killing the processor and
use this website a lot but first time posting. My program creates a number
This is my first time attempting to call an ASP.NET page method from jQuery.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.