Jump to content
We've recently updated our Privacy Statement, available here ×

jasper not open report


marciofermino

Recommended Posts

Capturar.PNG.570917167b7e5a31ae2dfcf24e365020.PNG

Good Morning, Friends speak of Brazil, I am using the following code . Within the NetBeans IDE code works and the report is submitted . But to generate the executable , it is not possible to open the report , getting the message null. It is as if he could not find the report. If puderm help , I am very grateful.

Good Morning, Friends speak of Brazil, I am using the following code . Within the NetBeans IDE code works and the report is submitted . But to generate the executable , it is not possible to open the report , getting the message null. It is as if he could not find the report. If puderm help , I am very grateful.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Not sure because you haven't given us any error message when you execute from execuatable. Most of the time, it's because the program is not finding the jrxml file.

I usually put jrxml files (I actually use jasper files instead) in "resources" folder and use the following code.

InputStream is = this.getClass().getClassLoader().getResourceAsStream(reportName);
JasperReport jasperReport = JasperCompileManager.compileReport(is);
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...