I have a well working program, which uses JasperReports. It uses JRBeanCollectionDataSource(List items); to populate the rows with data, but if I compile the .jrxml file either with JasperCompileManager.compileToFile() or with iReports I see only parameters populated without rows. Does anyone have had such a problem. I don't recieive any...
<reportElement x="79" y="103" width="279" height="23" backcolor="#000000">
<propertyExpression name="width"><![CDATA["100"]]></propertyExpression>
</reportElement>
I am trying to set the width of a reportElement by using a propertyExpresssion, Jasper Reports is picking up the width as 279 instead of 100 in the code above, and if I rem...
Hey! I am working on jrxml to create dynamic re0ports. I have parameterized the columns i.e. the jrxml for that report can be used to generate other reports as well.
However, i have not managed to make the fields flexible. That is, if the user selects 4 columns it would work but if 1 or 2 or 3 columns are selected, it gives an error si...
Hey!
Scenario:What my project do right now
User Enters his Login and Password through his mobile phone and servlets contacts webservice of Authentication and user gets authenticated with the system in the mean while user is Authorized also i.e What page he is allowed to see.
Page appears infront of user on his mobile screen from where ...
/*
* DynamicJasper: A library for creating reports dynamically by specifying
* columns, groups, styles, etc. at runtime. It also saves a lot of development
* time in many cases! (http://sourceforge.net/projects/dynamicjasper)
*
* Copyright (C) 2008 FDV Solutions (http://www.fdvsolutions.com)
*
* This library ...
Hi,
I want tom pass date as a field to the jrxml.
Follwing is the code for it.
But it is not working.
Its giving error as can not cast from date to number.
Then how to convert it?
...
Hi,
I am using following code to generate chart in jasper.
I am printing date on X-axis.
But it is displaying in millisecond.
I want to display it in hh:mm:ss format.
How to achieve it?
...
Hi,
I want to add date in HH:MM:SS format to the x-axis of XY-Line chart.
I am using follwing code to do it.
xValueExpression
![CDATA[new SimpleDateFormat("HH:mm:ss").format($F{time})]]
/xValueExpression
But it is giving error as can not convert from string to number.
Because XY-Line chart takes number on X and Y axis.
So how to achie...
Hi,
I am using timeseries dataset to print date on x-axis.
code is-
timePeriodExpression
![CDATA[new java.util.Date($F{time}.getTime())]]
/timePeriodExpression
But while fetching the value it is taking it as zero.
Why so?
Is any part of code is missing? Or timePeriod is missing?
If timeperiod is missing how to set it?
...
Hi, I am using jasper reports to generate graph.
I am refresheing the graph by using session.addHeader("Refresh",10);
But the problem is while refreshing the graph it is flickering.
Code is-
PrintWriter out = response.getWriter();
response.setContentType("text/html");
JRDataSource dataSource = createReportDataSource(perfArrayListSample...
Hi,
I am using TimeSerirs chart to display cpuusage per time.
Code is-
valueExpression
![CDATA[$F{cpuUsage}]]
/valueExpression
Problem is when it displays chart it always start with 5 or non-zero number.
It takes non-zero number as its first point then displays it.
How to set zero as its first point?
...
I would like to have a pair of TextFields depenging on a value. And the "y"-value should be adjusted depending on the empty space.
When the value is "0" I would like to hide the TextField.
I.e. I would like to hide the staticText and the textField if the parameter red is equal to "0" and have the blue values moved up, in the jrxml-code...
Hi,
The default background color of jasper chart is sky blue.
I want to change that background color.
How to change it?
...
Hello, I'm using JasperReports and I'm using the provided JRBeanCollectionDataSource class to wrap a List of beans. Everything works fine in my reports when I'm accessing a simple property of the bean, but what I really need to do is access a few methods on the class. For example I would like to access the method:
public List<Date> getC...