[jasperreports-questions] sub reports auto compile

2008-09-25 Thread Philippe Couas
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


Re: [jasperreports-questions] Extra white space when detail section overflows...

2008-09-25 Thread BalaKishore Pamarti
Hi Group:
 
In my report whenever the detail section overflows to the next page there's an 
extra white space left at the bottom (where a couple of rows of data easily 
fits)
 
Does any of you guys know how to eliminate this space.
 
Thanks,
Pamarti



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


  -
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


Re: [jasperreports-questions] Fw: problem with printWhenExpression

2008-09-25 Thread BalaKishore Pamarti
Thanks Sitaram...it works like a charm!
 
I just found that we can also get this accomplished using conditionalStyles...
 
thanks,
BalaKishore

 

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

--- On Wed, 9/24/08, Sitaraman Trikkumadom Balaraman <[EMAIL PROTECTED]> wrote:

From: Sitaraman Trikkumadom Balaraman <[EMAIL PROTECTED]>
Subject: RE: [jasperreports-questions] Fw: problem with printWhenExpression
To: "Sitaraman Trikkumadom Balaraman" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Date: Wednesday, September 24, 2008, 7:14 PM



I am just rephrasing the last step.


After you are done iwth the two text fields, Place the first text field exactly 
above the second text field.

Let me know if this was of any help

Regards
Sitaram


-Original Message-
From: Sitaraman Trikkumadom Balaraman
Sent: Thu 9/25/2008 4:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [jasperreports-questions] Fw: problem with printWhenExpression

Hi Balakishore,

I am not sure whether this would work..Please try the below steps

 Lets say you have the column 3 as the field that needs to be printed as blue 
bold when the condition is true or else printed as normal black font

 a) Create two new TextField that displays the column3 value.

 b) for the first textfield include the necessary expression to display it as 
blue bold (Follow the same step that you had done previously)
 c) For the second textfield, dont include the condition, but make sure it is 
normal black font

 d) place both textfields one after another (Superimpose it in the report)

Try running the report now and see if it works.

If you dont mind could you let me know if it worked for you or not? I am just 
curious

Thanks a lot
Regards
Sitaram





-Original Message-
From: BalaKishore Pamarti [mailto:[EMAIL PROTECTED]
Sent: Thu 9/25/2008 4:10 AM
To: jasperreports-questions@lists.sourceforge.net
Subject: [jasperreports-questions] Fw: problem with printWhenExpression

Hi Group:
 
I have created a report where I want one of the columns (say col3) to be 
printed in a blue bold font when certain condition is satisfied else I want 
them to be printed in normal black font.  
 
I have included the following expression in the  tag in 
the  tag
 
new Boolean(!($F{col1}.equalsIgnoreCase("N/A")) && 
!($F{col2}.equalsIgnoreCase("N/A")))
 
When I run the report only those values which qualify for the above expression 
are printed and the rest are not printed in the report and left blank
 
Am I missing something here?
 
Regards,
BalaKishore




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

--- On Fri, 9/19/08, jamshaid ashraf <[EMAIL PROTECTED]> wrote:

From: jamshaid ashraf <[EMAIL PROTECTED]>
Subject: Re: [jasperreports-questions] avoid extra blank space in reports...
To: [EMAIL PROTECTED]
Date: Friday, September 19, 2008, 8:58 AM






Hi,

Check the remove line when empty option , i think this will work.

cheers.
jimmy

--- On Wed, 17/9/08, BalaKishore Pamarti <[EMAIL PROTECTED]> wrote:

From: BalaKishore Pamarti <[EMAIL PROTECTED]>
Subject: [jasperreports-questions] avoid extra blank space in reports...
To: jasperreports-questions@lists.sourceforge.net
Date: Wednesday, 17 September, 2008, 6:50 PM







Hello:
 
I created a jasperreport with a subreport embedded beneath every row in the 
main report. Everything works fine but there is an extra white space beneath 
every row in the main report when there is no data in the subreport.
 
And also in other reports I noticed that there is extra space left unfilled in 
the detail section eventhough there is space to fit in couple of rows of data.
 
I am sure there has to be some setting to eliminate this whitespace ... can 
anyone shed some light on this...
 
Thanks a lot!


"Peace is found not in what surrounds us, but in what we hold within."
-
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



Unlimited freedom, unlimited storage. Get it now


 





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