Jump to content

problem to show a jasperreport from java


m_ilio

Recommended Posts

Hi... I am new in jasper report+ireport and I am testing.
I made a test report from a table without parameters, but when I want show the report, the command JasperFillManager.FillReport(), do nothing

this is the code that I am implementing:

 

        try {
            String report = "C:\reportes\test.jasper";
            Map parameters = null;
            Connection conn =DataBase.conexion;

            JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
            JasperViewer.viewReport(report, false);

        } catch (JRException ex) {
            JOptionPane.showMessageDialog(this,"Internal error to show the report","Error!",1);
            return;
        }


What is the problem?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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