Hi,
 
I have an main report with many sub reports.
Into my directory i have jrxml file , How could i found sub report name and directory from main report ?
I have tried following code, but that's not allawys true.
 

String fileName="c:\\prj_java\\TestAgarder\\jasperxml01\\CustomersReport.jrxml";
                 JasperCompileManager.compileReportToFile(fileName);
                 JasperReport  jasperReport = JasperCompileManager.compileReport(fileName);
            
             JRBand jb = jasperReport.getDetail();
          // jb children Expression
          java.util.List jl=jb.getChildren();
             JRBaseSubreport  jsr=(JRBaseSubreport)jl.get(3);
             JRExpression jre=jsr.getExpression();
             JRExpressionChunk[] jch=jre.getChunks();
             String fichierjasper=jch[0].getText();
 
 
Regards
Philippe