Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display a report

 
teguh sugiono
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me friends,
if i want to run jnlp in folder dist, then i'm not to see this error.

but when i to run in browser,
error report it happened like this in my JNLP program,
I have attempted in my power, but still can not mitigate this problem.


net.sf.jasperreports.engine.JREXception: java.io.FileNotFoundException: src\id\ptmsa\co\id\report\TestReport.jasper
 
Maneesh Godbole
Saloon Keeper
Posts: 11338
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

So does the file TestReport.jasper exist at the said location?
 
teguh sugiono
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use this

String path = "src/id/ptmsa/co/id/report/TesReport.jasper";
JOptionPane.showMessageDialog(null, "Direktori " + path );

JasperPrint jasperPrint = JasperFillManager.fillReport(path, null, koneksi);
System.out.println("Viewing...");
JasperViewer.viewReport(jasperPrint, false);
System.out.println("Done!");
direktori.JPG
[Thumbnail for direktori.JPG]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic