Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No values in JasperViewer

 
Mira Suting
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am new to jasper reports. I wanted view a jasper report in html. I used jasperreports 1.3.

Here are the codes:

JRResultSetDataSource jrRS = new JRResultSetDataSource( rs );

JasperReport jasperReport = (JasperReport) JRLoader.loadObject(file);

System.out.println("Successfully created jasper report");

//JasperPrint jasperprint = storeReportService.getJasperPrint(jasperReport,null,jrRS);

JasperPrint jasperprint = JasperFillManager.fillReport(jasperReport,parameters, jrRS);
System.out.println("print");

long start = System.currentTimeMillis();


JasperViewer.viewReport(jasperprint,true);




My problem is that I cannot see the field values eventough the field names are displayed.


I have no idea why there are no values. Please help me in this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic