Jump to content
Changes to the Jaspersoft community edition download ×

Subreport relative path not working


Recommended Posts

I cant open my subreport using relative path.My master report and subreports are in the same directory(folder-Report),so I used only the name of my subreports in subreport expression.if I run my master report from iReport,subreports are shown well BUT if I run the report from my java app. no report is shown.The code i used in my app is-

//only the required portion of code is shown
String report="./Report/MasterMemo.jasper";
HashMap <String,String> map=new HashMap<String,String>();
JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile, map, jdbcConnection);

Can anybody tell pls me how to solve the problem?

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 3
  • 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...