Jump to content
Changes to the Jaspersoft community edition download ×

the jasperViewer display nothing


biboo

Recommended Posts

hi everyBody.. i have a problem to display my informations from the JTable (TableModel) in the jasperViewer... i started with Jasper 2 days ago so i need ur help..!!

 

 

private void displayReport()

{

JasperPrint jasperPrint = generateReport();

JasperViewer jasperViewer = new JasperViewer(jasperPrint);

jasperViewer.setVisible(true);

}

 

private JasperPrint generateReport()

{

JasperPrint jasperPrint = null;

 

try

{Map m= new HashMap();

m.put("Data source"," hello");

jasperPrint = JasperFillManager.fillReport("AircraftReportColumnIndex.jrxml",m,new JRTableModelDataSource(tmp)); //tmp TableModel de ma JTable

}

catch (JRException ee)

{

ee.printStackTrace();

}

 

return jasperPrint;

}

 

ther's exception..

net.sf.jasperreports.engine.JRException: Error loading object from file : AircraftReportColumnIndex.jrxml

Link to comment
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Sorry but i'm using iReport 2.0.5..

 

when i save my report , it indicate if i want to save it in .xml or .jrxml!! so i don't know how i save it in .jasper!!

 

:blush: sorry , but i have to learn much more about the JasperReport.. nd how iReport nd Jasperreport works together, so plz help me! thnx

Link to comment
Share on other sites

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