mhbashar1 Posted January 10, 2008 Share Posted January 10, 2008 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-Code://only the required portion of code is shownString report="./Report/MasterMemo.jasper";HashMap <String,String> map=new HashMap<String,String>();map.put("ref_no",ref);......JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile, map, jdbcConnection);Can anybody tell pls me how to solve the problem? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now