Hi,
If my CustomersReport.jrxml contains two sub reports they are compiled too ?
 
Regards
Philippe

  _____  

De : BalaKishore Pamarti [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 26 septembre 2008 16:16
À : jasperreports-questions@lists.sourceforge.net; Philippe Couas
Objet : Re: [jasperreports-questions] sub reports auto compile



Just try --
 
JasperCompileManager.compileReportToFile(request.getSession().getServletCont
ext().getRealPath("/jasperreports/" + fileName + ".jrxml")); 
 
 
Pamarti



"Peace is found not in what surrounds us, but in what we hold within."


--- On Fri, 9/26/08, Philippe Couas <[EMAIL PROTECTED]> wrote:


From: Philippe Couas <[EMAIL PROTECTED]>
Subject: [jasperreports-questions] sub reports auto compile
To: jasperreports-questions@lists.sourceforge.net
Date: Friday, September 26, 2008, 12:57 AM


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
-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's

challenge

Build the coolest Linux based applications with Moblin SDK & win great

prizes

Grand prize is a trip for two to an Open Source event anywhere in the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________

jasperreports-questions mailing list

jasperreports-questions@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to