l1nk | 8 Jul 2008 13:01
Picon

Subreport and Struts2 problem


Hi.

I'm using jasper reports for the first time and my objective is to integrate
it into my web application where i'm using spring, struts2 and hibernate.

For start i create a simple and example with 2 classes: User and Morada
where Morada is a List.
Soo, as far i understand i need to create a report and then a subreport to
represent this List...

The problem is that i get all the User information except this List of
Morada.... My subreport stays blank.....

Here“s my code:

User.java
public class User implements Serializable {
	
	private static final long serialVersionUID = -270523345211099505L;
	
	private int id;
	private int version;

	private String nome;
	private Date dataNascimento;
	private List<Morada> moradas = new ArrayList<Morada>();
	private String carro;
	
	
(Continue reading)

SomunNabble | 11 Jul 2008 03:09
Picon

Problem with Excel report format generated by Japserreports 3.0 in Linux


Hi All,
We have an excel report generated by Jasperreports(ver3.0), the format of
which is uneven only in Linux.The problem is that after every 30 row, an
additional line is generated and part of the data from previous row is
displayed on the 31st row. This happens after every 30 rows.The same report
looks good in Windows. http://www.nabble.com/file/p18394895/sample.xls
sample.xls 

I have set the following parameters in the code:

xlsExporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,
						Boolean.FALSE);
xlsExporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,
						Boolean.TRUE);
xlsExporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS,
Boolean.TRUE);
xlsExporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE,
Boolean.TRUE);
xlsExporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND,
						Boolean.FALSE)
xlsExporter.setParameter(JRXlsExporterParameter.IS_IGNORE_GRAPHICS,
Boolean.TRUE);
xlsExporter.setParameter(JRXlsExporterParameter.IS_COLLAPSE_ROW_SPAN,
Boolean.TRUE);

Please let me know the reason for this format issue and the solution for the
same.

Environment:
(Continue reading)

voofunny | 9 Jul 2008 16:07
Picon

Cross Tab Order by issues


hi,
I have a report to show Group, faultName, val1, val2, val3.
created a cross tab grouping by 'Group' & 'faultName' so that it shows the
total for each and every 'group' and Grand total at the end.
I have a requirement, to order the data by Group, Val1 (0r) Group, Val2.
Defined the comparatorExpression on faultNamegroup to order the data by
val1.
But, the data rendered is ordered by Group & faultName(asc). While order'g
by faultName it is supposed to consider the comparatorExpression I defined.
which is not happen'g now. 

<rowGroup name="faultName" width="100" totalPosition="End">
<bucket>
   <bucketExpression
class="java.lang.String">![CDATA[$F{faultName}]]></bucketExpression>
   <comparatorExpression><![CDATA[$F{val1}]]></comparatorExpression>
</bucket>

Did I miss something??

thx in advance
--

-- 
View this message in context: http://www.nabble.com/Cross-Tab-Order-by-issues-tp18362480p18362480.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
(Continue reading)

csharpfan | 23 Jul 2008 12:48

queries question


Hello,

I need to select a some table in query. The name of that table is given in
java class that passes it to my .jrxml file to be used in my querystring.

I set parameters in javacode like this:

Map<String, String> inputParameters = new HashMap<String, String>();
...
inputParameters.put(jrxmlFieldName1,jrxmlParameter1);
			inputParameters.put(jrxmlFieldName2,jrxmlParameter2);
			jasperReport = JasperCompileManager.compileReport(getJRXMLName());
			jasperPrint = JasperFillManager.fillReport(jasperReport,
					inputParameters, connection);

I and I am trying to run the following query:

             <parameter name="selFileVersion" class="java.lang.String"
isForPrompting="true" >
		<defaultValueExpression
><![CDATA["someFileVersion"]]></defaultValueExpression>
	</parameter>
	<parameter name="selId" class="java.lang.String" isForPrompting="true" >
		<defaultValueExpression ><![CDATA["Id"]]></defaultValueExpression>
	</parameter>
<queryString>
             <![CDATA[select * from $P{selFileVersion} where Id = $P{selId}
]]>
</queryString>
(Continue reading)

amit.sharma | 21 Jul 2008 13:22

Re: Hyperlink in jasper


Hi,
You can call a Jasper iReport from another iReport using hyperlink.
In the hyperlink section you should set hyperlink type=reference
and in Hyperlink reference expression call another servlet using the code
link
"http://localhost:8080/servlets-examples/servlet/callReport3?CUSTOMER_ID=" + 
$F{ORDERS_CUSTOMER_ID}
here callReport is a servlet calling another iReort and CUSTOMER_ID is a
parameter that
is being passed through the servlet.
For any more details can contact me on joydip_2005@...

Thanks,
Joydip

Hi Joydip, 
I need u's help.
i want to do this same task without using
"http://localhost:8080/servlets-examples/servlet/callReport3?CUSTOMER_ID="
+$F{ORDERS_CUSTOMER_ID}" concept. Is there any other way to call a new
report by clicking of report generated by iReport and also passing that
clicked value as parameter to another report.

--

-- 
View this message in context: http://www.nabble.com/Hyperlink-in-jasper-tp11941986p18566664.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
(Continue reading)

Sathish Gopal | 30 Jul 2008 15:16
Favicon

Error with JasperViewer


Hi everyone,

I'm new to Jasper reports. I created a sample report using i'report. I'm
trying to display this report in web application. Our web application uses
JSF-richfaces.
I'm trying to open jasper report via Jasper viewer on the client side.

In my backing bean i create a Jasperprint object as given below..

			jasperPrint = JasperFillManager.fillReport(jasperReport, reportMap,ds);
			JasperViewer.viewReport(jasperPrint);

The jasperPrint object is passes to the JasperViewer and it open the report
correctly but it works on the server side (as expected). I can see the
report without any issues.

Now the same jasperprint object is used to display the report on the client
via the Applet.
I'm using PDFServlett and EmbeddedViewerApplet to do this. This gives me a
strange error

java.io.StreamCorruptedException: invalid stream header 2550446. 

BTW: My Tomcat server and my client(browser) uses the same JRE version.

I'm completely clueless. Ur help is appreciated.

http://www.nabble.com/file/p18732980/jasper_error.jpg 
--

-- 
(Continue reading)

Francisco Haubert de Souza | 25 Jul 2008 16:31
Picon

Crosstab and Fields

Dear Members!
 
I've been read the reply of the email http://www.mail-archive.com/jasperreports-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org/msg00220.html and i dont know how i do this. Anyone can help me?
 
I'd tryied to built a Bean that have Strings, ints and a HashMap with month, month_description properties.
I like to do a Crosstab with a columngroup by month but with month_description header. I dont know how reference fields in the hashmap object into the crosstab objects. first to do the columngroup then to have a textField with month_description.
 
Regards,
Francisco Souza
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
Zmaj | 26 Jul 2008 21:10
Picon
Picon

Re: re d gradient in charts in pdfs


I face exactlly the same problem and can't figure it out.
Even when i use a customizerClass i can't get rid of it.
Can somebody help ? 

Dan Adams wrote:
> 
> I have a really funky problem where when I generate a pdf, all my charts
> have this red gradient on them. I'm using iReport 1.2.1 and JR 1.2.1.
> I've attached the source and pdf result.
> 
> This appears to have come up on the list before:
> http://sourceforge.net/forum/message.php?msg_id=3628517
> 
> -- 
> Dan Adams
> Software Engineer
> Interactive Factory
> 617.235.5857
> 
>  
>  
> 

--

-- 
View this message in context: http://www.nabble.com/red-gradient-in-charts-in-pdfs-tp4067301p18670000.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
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=/
UkSankar | 29 Jul 2008 15:16
Picon

jasper reports for generating pcl and ps files


Hi,

Is there any way japerreports can be sent as pcl or ps format?

I need it as pcl file but until jasper 3.0 , it is not giving PCL/ps fomat.

Is there any other way in java itself to create ps/pcl file without any
other product or without using FOP?

Thanks & Regards,
Sankar
--

-- 
View this message in context: http://www.nabble.com/jasper-reports-for-generating-pcl-and-ps-files-tp18711898p18711898.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

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

Gmane