[jasperreports-questions] unable to generate sub report in jasper reports(help me please)

2010-12-30 Thread @rju

hi ,
I am your old student.
In my company we are using  Swings on NetBeans IDE. I need a requirement of
generating sub report. here i am attaching the code. In that i have two
queries. one for main report and one for sub report. but am unable to call
the sub report... can you please send me the code. its urgent...
please..
http://old.nabble.com/file/p30556708/Fin_PaidReceiptRpt.jrxml
Fin_PaidReceiptRpt.jrxml 
http://old.nabble.com/file/p30556708/Fin_PaidReceiptRpt_subreport0.jrxml
Fin_PaidReceiptRpt_subreport0.jrxml 
http://old.nabble.com/file/p30556708/PaidReciptReport.java
PaidReciptReport.java 
http://old.nabble.com/file/p30556708/JasperReportInvoker.java
JasperReportInvoker.java 

-- 
View this message in context: 
http://old.nabble.com/How-about-loop-a-sub-report--tp23847733p30556708.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] sub reports auto compile

2010-12-30 Thread @rju



bpamarti wrote:
 
 Regarding the subreports what I do is compile them individually and
 standalone reports and place the .jasper files along with the main report
 .jasper file and pass the parameter SUBREPORT_DIR to the main report
  
 In the subreportExpression tag you use this.
  
 Hope this helps.
  
 thanks,
 Pamarti
 
 
 
 Peace is found not in what surrounds us, but in what we hold within.
 
 --- On Fri, 9/26/08, Philippe Couas pco...@infodev.fr wrote:
 
 From: Philippe Couas pco...@infodev.fr
 Subject: Re: [jasperreports-questions] sub reports auto compile
 To: jasperreports-questions@lists.sourceforge.net
 Date: Friday, September 26, 2008, 10:23 AM
 
 
 
 Hi,
 If my CustomersReport.jrxml contains two sub reports they are compiled too
 ?
  
 Regards
 Philippe
 
 
 
 De : BalaKishore Pamarti [mailto:bpama...@yahoo.com] 
 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().getServletContext().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 pco...@infodev.fr wrote:
 
 From: Philippe Couas pco...@infodev.fr
 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=100url=/___
 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=100url=/___
 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=100url=/
 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
 
 

-- 
View this message in context: 
http://old.nabble.com/sub-reports-auto-compile-tp19682794p30556710.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] sub reports auto compile

2010-12-30 Thread Nagarjuna B
ok but how to send the two queries there??? i hav queries right.. how
can i pass that two queries from code.. i hav to send that through
code it self..
If you hav any coding regarding sub reports send me once.


On Thu, Dec 30, 2010 at 5:18 PM, @rju nagarjunabatt...@gmail.com wrote:



 bpamarti wrote:

 Regarding the subreports what I do is compile them individually and
 standalone reports and place the .jasper files along with the main report
 .jasper file and pass the parameter SUBREPORT_DIR to the main report

 In the subreportExpression tag you use this.

 Hope this helps.

 thanks,
 Pamarti



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

 --- On Fri, 9/26/08, Philippe Couas pco...@infodev.fr wrote:

 From: Philippe Couas pco...@infodev.fr
 Subject: Re: [jasperreports-questions] sub reports auto compile
 To: jasperreports-questions@lists.sourceforge.net
 Date: Friday, September 26, 2008, 10:23 AM



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

 Regards
 Philippe



 De : BalaKishore Pamarti [mailto:bpama...@yahoo.com]
 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().getServletContext().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 pco...@infodev.fr wrote:

 From: Philippe Couas pco...@infodev.fr
 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=100url=/___
 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=100url=/___
 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=100url=/
 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions



 --
 View this message in context: 
 http://old.nabble.com/sub-reports-auto-compile-tp19682794p30556710.html
 Sent from the jasperreports-questions mailing list archive at Nabble.com.


 --
 Learn how Oracle Real Application Clusters (RAC) One Node allows customers
 to consolidate database storage, standardize their database environment, and,
 should the need arise, upgrade to a full multi-node Oracle RAC database
 without downtime or disruption
 http://p.sf.net/sfu/oracle-sfdevnl
 ___