Re: [jasperreports-questions] Custom Components

2010-02-17 Thread Lucian Chirita




The JasperReports user guide (see information on it at http://www.jaspersoft.com/jasperreports-ultimate-guide)
contains an explanation of the barcode component in the form of a
tutorial.

Writing a custom component is indeed rather complicated. The best
thing to do is to start from an existing component (like the barcode
one), do some step-by-step debugging to understand what and when each
part of the component implementation does and then start to implement
your own component.

Writing a plugin for iReport UI support is a different thing, I'm
afraid I can't offer any information on that.

Regards,
Lucian

Michi Doswald a scris:

  Hello,

I'm trying to create reports with integrated wavedata (ECG curves) graphics.
The charts available in jasper reports are not capable enough to display the
ecg data the way I want it (at least it seems so). That's why I wanted to
write my own "Custom Component" for jasperreports. I read that the Barcode
component is also implemented as a Custom Component. And I saw that it
should be possible to use such components in the iReport application by
writing a NetBeans module.

I already tried to figure out how to do it by looking at the Barcode and
List source code in jasperreports as well as reading the jasperreport API
(3.7.0). But its seems to be quite complicated to write such a custom
component. Are there any tutorials, books or other documentation about that?
I can't find much on the internet.

any hints would be appreciated

thx
Michael
  




--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Reference a parameter from another parameter

2006-07-14 Thread Lucian Chirita
You can use the default value expression of the parameter to do this:
parameter name=Parameter .../
parameter name=NewParameter isForPrompting=false
defaultValueExpression$P{Parameter}.convertToDate 
etc/defaultValueExpression
/parameter

HTH,
Lucian

David Meiser wrote:
 Is it possible to reference one parameter from another?

 I need to get the date prior to a user entered date and while, in 
 theory, I could do this with DB2, I get an error stating that the 
 parameter is incorrectly referenced.  I figure that it's because the 
 parameter is nested too deeply.

 I thought that an excellent way to work around this is to just say 
 something like $NewParameter = 
 ($Parameter.ConvertedToDateFromCustomFormat() - 1 
 day).ConvertedBackTodateFromCustomFormat().  However, I haven't seen 
 anything that does this and I haven't been successful at doing this.

 Thanks!
 Dave
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   
 

 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Question re report query SQL

2006-06-09 Thread Lucian Chirita
Read this, it shows how to pass SQL fragments through parameters:
http://jasperreports.sourceforge.net/tutorial/index.html#parameters

HTH,
Lucian

John Dunn wrote:
 Is it possible to pass part of,  or an entire SQL query string as a
 parameter?

 My problem is that the SQL where clause may vary from one call of the report
 to another i.e.some AND clauses may or may not be required.

 Or is the case that only values can be passed as parameters?


 John Dunn
 Product Consultant
 Direct Dial +44 (0) 117 373 6122
 Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK.
 Tel: +44(0) 117 373 6114
 Fax: +44 (0) 117 373 6115

 www.sefas.com





 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
   


___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] jasper report and virtual disc usage

2006-06-09 Thread Lucian Chirita
You can get the full JR distribution and check the 
demo/samples/virtualizer sample to see how a virtualizer can be used 
while filling/exporting a report.

You can also find some information from the API Javadocs at
http://jasperreports.sourceforge.net/api/index.html

HTH,
Lucian


Reza Razavipour wrote:
 To all,
  
 I am very very new to Jasper reports so excuse the primitive 
 vocabulary. I run a very old version of jasper reports.I run out of 
 memory very easily and quickly so I limit my queries to 25000 records. 
 I have heard that the latest version of jasper reports can use the 
 disc to cache query results to and therefore way better queries and 
 lower memory usage. I have downloaded the latest version and need help 
 on how to setup jasper report to use the disc for swapping. I can not 
 find any documentation on this on their site.
  
 Can anyone point me in the right direction?
  
 TIA
 reza
 

 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
   


___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Tomcat 5.5 and JasperReports 1.2.2

2006-05-16 Thread Lucian Chirita

Hi

Regarding Javaflow, you can't find it as there is no release yet.  You 
can get a Javaflow snapshot jar from the JR distribution (the project 
zip), or from CVS (if you don't want to get the full project zip):

http://jasperreports.cvs.sourceforge.net/jasperreports/jasperreports/lib/

I'll leave others to answer the question regarding the compact jars as I 
don't have an answer.



HTH,
Lucian


Wojtek Stańczuk wrote:

Hi,

I've got problems in configuration JR 1.2.2 with Tomcat.
Every time I run my report I got exception: NoClassDefFoundError

with different classes from other needed libraries. I've installed almost
all listed on home page of JR, except one: commons-sandbox-javaflow,
because I can't fint it in web :/

Do you have any experience in installing JasperReports in this 
configuration?

Are there any complete compact JARs for JasperReports as not to have
install several others libraries?

 Thanks for any help :)

 Wojtek Stanczuk



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Please help

2006-05-03 Thread Lucian Chirita

Hi

See this regarding the Html export:
https://sourceforge.net/forum/message.php?msg_id=3711741


Regards,
Lucian


Meenakshi Singh wrote:

hi all,

I have recently upgraded to jasper reports 1.2.2 from JR 1.1.1. Several
reports run through JR in my project in html, pdf  xls format. Pdf is
working fine.

Whereas my reports don't produce any html output now, they show a blank
page(No errors even)

 my xls report doesn't show the cell borders.

Please help me find out why it's no generating any html now as I have not
made any changes to the html servlet which I used to render the html output.
It's only after the upgradation that the problem happened.

I have copied all required lib files  only have one copy of the JR jar file
 other lib files.

I am also attaching my html servlet for your reference.

Even when I try to view the report in html from ireport, it gives me a blank
page  done message on the status bar of the browser. It does not show
anything. I have tried creating a new report in ireport1.2.2. However, when
I try to view the report in html it gives me a blank page on the browser.

Please help, people. I am stucked with this problem  not able to move ahead
in the upgrade process.

Thanks  Regards,
MS.
  




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Please help

2006-05-03 Thread Lucian Chirita

Unfortunately we don't usually distribute binary patches.

You can solve the problem in several ways:

   * get the JRHtmlExporter.java revision from CVS and perform a build
   * use the JRHtmlExporterParameter.HTML_HEADER workaround
   * use JR 1.2.1 until the next release (if you don't need any of the
 1.2.2 changes)


Regards,
Lucian


Meenakshi Singh wrote:

Thank you for your reply Lucian.
Would you tell me where/how do I get the revised jar? or when would it be
available for download.

Thanks  Regards,
Meenakshi.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Lucian Chirita
Sent: Wednesday, May 03, 2006 2:30 PM
To: JasperreportsQuestions (E-mail)
Subject: Re: [jasperreports-questions] Please help


Hi

See this regarding the Html export:
https://sourceforge.net/forum/message.php?msg_id=3711741


Regards,
Lucian


Meenakshi Singh wrote:
  

hi all,

I have recently upgraded to jasper reports 1.2.2 from JR 1.1.1. Several
reports run through JR in my project in html, pdf  xls format. Pdf is
working fine.

Whereas my reports don't produce any html output now, they show a blank
page(No errors even)

 my xls report doesn't show the cell borders.

Please help me find out why it's no generating any html now as I have not
made any changes to the html servlet which I used to render the html


output.
  

It's only after the upgradation that the problem happened.

I have copied all required lib files  only have one copy of the JR jar


file
  

 other lib files.

I am also attaching my html servlet for your reference.

Even when I try to view the report in html from ireport, it gives me a


blank
  

page  done message on the status bar of the browser. It does not show
anything. I have tried creating a new report in ireport1.2.2. However,


when
  

I try to view the report in html it gives me a blank page on the browser.

Please help, people. I am stucked with this problem  not able to move


ahead
  

in the upgrade process.

Thanks  Regards,
MS.






---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

  




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] maven 2 jasper reports plugin?

2006-05-02 Thread Lucian Chirita
The only one I'm aware of is one written by Grégory Joseph, currently found in
the Mojo sandbox at codehaus.org (see http://mojo.codehaus.org).

Regards,
Lucian

Citat Dan Adams [EMAIL PROTECTED]:

 Is there a maven 2 plugin for compiling reports?
 
 -- 
 Dan Adams
 Software Engineer
 Interactive Factory
 617.235.5857
 
 
 
 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
 




--
This mail sent through Horde-Toaster (http://qmailtoaster.clikka.com/)


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] delaying conditional style evaluation

2006-04-27 Thread Lucian Chirita
The JR rendering engine always evaluates conditional styles when it 
begins to render a band, delayed conditional style evaluation is not 
currently supported.


Still, you can use a styled text field with Auto evaluation type to 
change the style of the biggest value.  You'd obviously need to create a 
variable calculating the highest value and then create a text field with 
an expression looking something like this (f is the value field and 
max is the variable):
$F{f}.equals($V{max}) ? (style forecolor=\red\ + $F{f} + 
/style) : $F{f}.toString()


HTH,
Lucian

Dan Adams wrote:

I have a column of values and would like to apply a style (red text
color) so that the highest number in the column gets colored. Whats the
best way to do this? Thanks.

  



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Hide a field based on the next row

2006-04-27 Thread Lucian Chirita

Hi

If I understand your requirement correctly, you need something similar 
to this (you could create a group based on the date field):

http://sourceforge.net/forum/message.php?msg_id=3540986

If so, take a look at the provided solution and see whether it suits 
your needs.


HTH,
Lucian


Adriano dos Santos Fernandes wrote:

Hi!

This is a similar problem of the other I post, but I need to show/hide 
a field based on the value of the next record.


If the date field of the next record is equal to date of current 
record, I want to hide the remainder field.
If the date field of the next record is different or if there isn't a 
next record, I want to show it.


I'm solving that with a custom JRDataSource.

Is there a way to do that directly?


Adriano



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Re: with out memory filling big reports

2006-04-19 Thread Lucian Chirita

a a wrote:

hello i have solved my problem i don't know, but have
changed the version of jasper to 1.2 and run perfect,
but i have ohter problem o no problem question, when i
call the method 


JasperFillManager.fillReportToFile(
jasperReport,
tmpFileLlenar.getPath(),
parameters, 
ds

);

this use a memory? when i call this with a small
reports no problem but when i call with a big reports
i have a java.lang.outOfMemory, i thought that this no
have diference between small report and big reports
how the fill is into a file not into a object in
memory.

  
fillReportToFile is nothing more than a shortcut method for filling a 
report in memory and then saving it into a file.


Currently the fill process is not streamable, it always fills the whole 
report in memory (but when you use a virtualizer, part of that memory 
gets virtualized).  This is because in the general case streaming is not 
possible (e.g. if you have page x of y on each page, even the first 
page is finished only after all the report has been generated).


Therefore, if you have large reports to fill and not enough VM memory, 
you should use a virtualizer.



some one know why?
thanks
alvaro tovar

  

Regards,
Lucian Chirita

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
  



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Dynamic grouping

2006-03-01 Thread Lucian Chirita

Hi

You can create a variable to hold the value used for grouping:
variable name=groupVal class=java.lang.Object
   variableExpression
  $P{grpHeader}.equals(city) ? $F{city} : 
($P{grpHeader}.equals(state) ? $F{state} : ... )

/variableExpression
/variable
and then group by $V{groupVal}

Note that specifying a group in a report does not sort the data set, so 
you will probably need to sort it depending on your parameter value:

queryselect ... order by $P!{grpHeader}/query

Then, in the group header you can use printWhenExpression to decide 
which header to show (city, state, etc).



HTH,
Lucian


Doug James wrote:

Amar, thanks for the reply.

My apologies for not explaining things completely. What I would like to
do is change the field in a grouping band on the actual report as well
as in the query. So in the jrxml I have something like:
group
name=groupedgroupExpression![CDATA[$F{$P{grpHeader}}]]/groupExpr
ession

I hope this helps explain things further.

Doug

-Original Message-
From: Amar Patel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 4:53 AM

To: Doug James; jasperreports-questions@lists.sourceforge.net
Subject: RE: [jasperreports-questions] Dynamic grouping

hi,

It is possible to pass a parameter in to your template which will run
the query accordingly and fill ur report. 
For example:

parameter name=Flag class=java.lang.String/
queryString![CDATA[select * from ...group by
$P{Flag}]]/queryString

I hope that this is what you were looking for.

Thanks
-Amar


-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 28, 2006 8:02 PM
To: jasperreports-questions@lists.sourceforge.net
Subject: [jasperreports-questions] Dynamic grouping


We have a report that is currently implemented in a different reporting
product. To satisfy our user requirements we have ended up with 3
different report templates to support the 3 different grouping that can
be requested. For example: One template groups by city, another by state
and the final by area code.

Is it possible to pass a parameter into a Jasper Report template that
would allow for one template and the 3 different groupings. We would
like to be able to call the report and pass in the city flag or the
state flag etc.

Thanks for the assistance!  


Doug James
Software Engineer
Benefitfocus.com, Inc.






BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
intended only for the individual or entity to which it is addressed and
may contain information that is confidential and protected by law.
Unauthorized review, use, disclosure, or dissemination of this
communication or its contents in any way is prohibited and may be
unlawful. If you are not the intended recipient or a person responsible
for delivering this message to an intended recipient, please notify the
original sender immediately by e-mail or telephone, return the original
message to the original sender or to [EMAIL PROTECTED], and
destroy all copies or derivations of the original message. Thank you.
(BFeComNote Rev. 08/01/2005)


***


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions



BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding 

Re: [jasperreports-questions] IS_IGNORE_PAGINATION paramete

2006-01-05 Thread Lucian Chirita

Hi

IS_IGNORE_PAGINATION is a fill-time parameter, therefore you'll have to 
set it when filling the report:


params.put(JRParameter.IS_IGNORE_PAGINATION, Boolean.TRUE);
JasperFillManager.fillReport(jasperReport, params, ..);


Note that since the parameter is used at fill time, the JasperPrint 
object will have no pagination and no exports will be paginated.



HTH,
Lucian


Marco Mistroni wrote:

hello all,
  i m writing a report which needs to be exported in html and csv
 
when the output is csv i want to ignore pagination...
 
i found out that there is a parameter called IS_IGNORE_PAGINATION that 
needs to be set to

true... but i don't know where to call it...
 
shall i call it before JasperFillManager.fillReport?
 
or before exportReport?
 
and on which class i can call it?
 
i tried, when exporting to Csv, to define a parameterMap which contained

JRParameter.IS_IGNORE_PAGINATION
and JRCsvExporterParameter.FIELD_DEL.IMITER
 
the field delimiter worked fine, but the report completely ignored the 
IS_IGNORE_PAGINATION
 
anyone could help?
 
thanks and regards

 marco



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Jdt-Compiler + Java 1.5

2005-11-22 Thread Lucian Chirita

Hi

We've added initial support for Java 1.5 compilation: the JDT compiler 
jar has been upgraded to 3.1.1 and JR or system properties specify 
whether 1.5 compilation should be perfomed (as suggested by Havier).


There is a sample that shows how 1.5 compilation can be used.

To be noted that some things (like generic types for 
parameters/variables) are not yet supported.


Regards,
Lucian Chirita


Xavier Frisaye wrote:


Thanks again for replying.

It works only when i use the 3 parameters related to jdk version :

   settings.put(CompilerOptions.OPTION_Compliance, 
CompilerOptions.VERSION_1_5);
   settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5);
   settings.put(CompilerOptions.OPTION_TargetPlatform, 
CompilerOptions.VERSION_1_5);

But for more usability (working with system properties), I made this patch to 
JRJdtCompiler at line 301 :

   Enumeration systemPropertiesName = 
System.getProperties().propertyNames();
   while (systemPropertiesName.hasMoreElements())
   {
   String systemPropertyName = (String) 
systemPropertiesName.nextElement();
   String systemPropertyValue = (String) 
System.getProperties().get(systemPropertyName);
   if ( systemPropertyName.startsWith(org.eclipse.jdt.core.compiler) 

systemPropertyValue != null  systemPropertyValue.length()  0)
   {
log.info(Adding system property \ + systemPropertyName +
  \ with value \ + systemPropertyValue + \ to compiler 
settings map);
settings.put(systemPropertyName,systemPropertyValue);
   }
   }

Is-it possible to make similar functionality in future release?
Of course, only if the community think it could be useful and it was not done 
yet. ;-)

Regards,

Xavier Frisaye

-Original Message-
From: Lucian Chirita [mailto:[EMAIL PROTECTED]
Sent: lundi 3 octobre 2005 17:21
To: jasperreports-questions@lists.sourceforge.net
Subject: Re: [jasperreports-questions] Jdt-Compiler + Java 1.5


You can also set
settings.put(CompilerOptions.OPTION_TargetPlatform, 
CompilerOptions.VERSION_1_5);

if you want 1.5 class files generated..


Lucian Chirita wrote:

 


Hi

If you want to use 1.5 code in your report, you'll have to set the 
following option when compiling the report (in JRJdtCompiler.java):
  settings.put(CompilerOptions.OPTION_Source, 
CompilerOptions.VERSION_1_5);



Regards,
Lucian


Xavier Frisaye wrote:

   


Thanks a lot for your reply.

Your patch seems to work but i'm encountering another problem, i have 
the same auto-boxing compilation error than with the non 3.1 
jdt-compiler :
Caused by: net.sf.jasperreports.engine.JRException: Errors were 
encountered when compiling report expressions class file:

1. Cannot cast from boolean to Boolean
  value = (java.lang.Boolean)(true);
  ---
2. Cannot cast from boolean to Boolean
  value = (java.lang.Boolean)(true);
  ---
3. Cannot cast from boolean to Boolean
  value = (java.lang.Boolean)(true);
  ---
3 errors

Is there a way (sys property or any) to activate Java 1.5 compilation 
in Jdt-Compiler?


Best regards,

Xavier

-Original Message-
From: Lucian Chirita [mailto:[EMAIL PROTECTED]
Sent: lundi 3 octobre 2005 15:07
To: jasperreports-questions@lists.sourceforge.net
Subject: Re: [jasperreports-questions] Jdt-Compiler + Java 1.5


Hi Xavier

The following patch ensures support for the 3.1 Jdt compiler:
http://sourceforge.net/tracker/index.php?func=detailaid=1233072group_id=36382atid=416705 



JRJdtCompiler rev 1.12 supports both the 3.1 compiler and the one 
distributed with JasperReports.  This is part of the 1.0.0 release.


If upgrading to 1.0.* is not an option, you could apply the patch to 
the 0.6.7 sources and use the 3.1 compiler.


HTH,
Lucian


Xavier Frisaye wrote:



 


Hi all,

I'm using Jasper Reports 0.6.7 with Java 1.5 and JavaC for template 
compilation .
But i would try to use jdt compiler instead of JavaC but it doesn't 
work with Java 1.5 (autoboxing compilation error).
I also try the lastest jdt compiler from Eclipse (3.1.0) but it 
seems its api has changed and it is no more compatible with Jasper 
0.6.7.


Am i missing something?

Does anyone have this problem?

Regards,

Xavier Frisaye
 
   


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, 
discussions,

and more. http://solutions.newsforge.com/ibmarch.tmpl
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


 


---
This SF.Net email is sponsored by:
Power Architecture Resource

Re: [jasperreports-questions] Compatibility Problem i_Report_0_2_3 and i_Report-0.5.1

2005-11-17 Thread Lucian Chirita

Hi

Your error is due to a bug (#1290957) that was fixed in JasperReports 1.0.3.

iReport 0.5.1 comes with JR 1.0.1, you could download JR 1.0.3 and 
replace it in the iReport lib directory.


HTH,
Lucian


janardhana p wrote:


Hi,
 
 
We have compiled the old report files with i_Report-0.5.1.
We are getting the following exception when there is a subreport in 
title page section and

the main query(report) returns 0 rows.
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R 
java.lang.ClassCastException: 
net/sf/jasperreports/engine/base/JRBasePrintPage incompatible with 
net/sf/jasperreports/engine/base/JRVirtualPrintPage
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Throwable.init(Throwable.java)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Throwable.init(Throwable.java)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr   nbs p; R  at 
java.lang.ClassCastException.init(ClassCastException.java:53)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRBaseFiller.registerSubfiller(JRBaseFiller.java:1719)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:727)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:437)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Thread.run(Thread.java:802)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R 
java.lang.ClassCastException: 
net/sf/jasperreports/engine/base/JRBasePrintPage incompatible with 
net/sf/jasperreports/engine/base/JRVirtualPrintPage
[11/17/05 11:57:10:909 EST]  5e70 5e7 SystemErr R  at 
java.lang.Throwable.init(Throwable.java)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Throwable.init(Throwable.java)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.ClassCastException.init(ClassCastException.java:53)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRBaseFiller.registerSubfiller(JRBaseFiller.java:1719)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:727)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:437)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R nbs p;at 
java.lang.Thread.run(Thread.java:802)

[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R
NESTED BY :
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R 
java.lang.ClassCastException: 
net/sf/jasperreports/engine/base/JRBasePrintPage incompatible with 
net/sf/jasperreports/engine/base/JRVirtualPrintPage
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Throwable.init(Throwable.java)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Throwable.init(Throwable.java)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.ClassCastException.init(ClassCastException.java:53)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRBaseFiller.registerSubfiller(JRBaseFiller.java:1719)
[11/1 7/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:727)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:437)
[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R  at 
java.lang.Thread.run(Thread.java:802)

[11/17/05 11:57:10:909 EST]  5e705e7 SystemErr R
NESTED BY :
 

If we move subreport from title section to summary section then the 
report is working fine.

Please throw some light on this to resolve this problem.

Thanks in Advance.
Jana.


Yahoo! FareChase - Search multiple travel sites in one click. 
http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/ 





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions