Bob Morley | 23 Sep 00:36 2009

Subreport positioning


Note - I am very new to jasper reports so I am apologetic if this message is
obvious to most.

I am working on a jasper report that models an invoice.  The report was
initially created using a data source that represented the entire set of
data for the invoice.  It was granular down to the invoice item level, and
each row in the data source would contain information such as the company's
address, phone, customer's name, shipping address, subtotal information, as
well as information related to the actual invoice items.

My initial inkling was that we should model this report as a series of
sub-reports.  Picture the company logo in the top left, company contact
details in the top right, then the customer details in the "middle" left,
with order details in the middle right, finally the set of invoice items,
and then the subtotal information.  The main motivation here was to create a
series of subreports that could be used on various report.  It also allowed
me to create a more specific datasource query to bind to the various
sub-reports which would avoid cardinality issues as well as aiding in making
it more testable.

Question #1: Is this a reasonable approach or is there a better way to model
multiple queries to the same final report.

Question #2: The trouble I am having is actually laying out the sub-reports
so that they flow from the one to the other without creating empty space on
the final report.  What properties should I be setting?  Picture a report
that has 3 sub-reports in a band where the middle sub-report actually
contains no data.  I would want sub-report #1 and #3 to have no space
between them (from #2).  Moreover, if #2 has a lot of data I would like to
(Continue reading)

Sathya K | 23 Sep 11:46 2009
Picon

java.lang.NoSuchMethodError: com.opensymphony.xwork2.Action exception


Hi

i am creating a Jasper Reports.

i am getting a java.lang.NoSuchMethodError:
com.opensymphony.xwork2.Action.get(Ljava/lang/String;)Ljava/lang/Object;
exception

i am using xworks-2.1.1.jar
Jdk is 6.0(1.6)

Please help me to solve this issue
Stack Trace

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception

root cause

java.lang.NoSuchMethodError:
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
org.apache.struts2.views.jasperreports.JasperReportsResult.doExecute(JasperRepo
rtsResult.java:245)
(Continue reading)

bobobo | 25 Sep 18:39 2009
Picon

IsBlankWhenNull issue when export to HTML in Spring framework


Hi,

Does anyone know why when I set the attribute IsBlankWhenNull set to true,
it also removes the drawing (rectangular box) of those fields with null
values when export to html? my environment is in Spring MVC.

It works fine when exporting to PDF, Excel, and also works fine when I use
iReport tool to display it in html.

Thanks in advance.
Bob
--

-- 
View this message in context: http://www.nabble.com/IsBlankWhenNull-issue-when-export-to-HTML-in-Spring-framework-tp25615237p25615237.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
jmodeveloper | 19 Sep 07:51 2009
Picon

re port get printed in server instead of client


I am using jBoss server .
when we are giving print from the client it does it print in client but its
get print in the server.. i don't know how to redirect it...so help me...

this is the piece of code::

PrintRequestAttributeSet printRequestAttributeSet = new
HashPrintRequestAttributeSet();
printRequestAttributeSet.add(OrientationRequested.PORTRAIT);
printRequestAttributeSet.add(MediaSizeName.ISO_A4);
PrintServiceAttributeSet printServiceAttributeSet = new
HashPrintServiceAttributeSet();
printServiceAttributeSet.add(new PrinterName("HP LJ P3005", null));
exporter = new JRPrintServiceExporter();
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET,
printRequestAttributeSet);
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET,
printServiceAttributeSet);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG,
Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG,
Boolean.FALSE);
--

-- 
View this message in context: http://www.nabble.com/report-get-printed-in-server-instead-of-client-tp25518821p25518821.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
(Continue reading)

kundan dwivedi | 16 Sep 07:49 2009

Graphical report not working with jasper report


Hi,

I am new to jasper report. I created two reports(one tabular and one
graphical) with ireport. I am using jrxml file (generated by ireport) and
executing that with my java code. The tabular report is running fine but
while i try to run graphical report its throwing an exception - 

"Could not create the report org.xml.sax.SAXParseException:
cvc-complex-type.2.4.a: Invalid content was found starting with element
'itemLabel'. One of
'{"http://jasperreports.sourceforge.net/jasperreports":categoryAxisLabelExpression,
"http://jasperreports.sourceforge.net/jasperreports":categoryAxisFormat,
"http://jasperreports.sourceforge.net/jasperreports":valueAxisLabelExpression,
"http://jasperreports.sourceforge.net/jasperreports":valueAxisFormat,
"http://jasperreports.sourceforge.net/jasperreports":domainAxisMinValueExpression,
"http://jasperreports.sourceforge.net/jasperreports":domainAxisMaxValueExpression,
"http://jasperreports.sourceforge.net/jasperreports":rangeAxisMinValueExpression,
"http://jasperreports.sourceforge.net/jasperreports":rangeAxisMaxValueExpression}'
is expected. org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'itemLabel'. One of
'{"http://jasperreports.sourceforge.net/jasperreports":categoryAxisLabelExpression,
"http://jasperreports.sourceforge.net/jasperreports":categoryAxisFormat,
"http://jasperreports.sourceforge.net/jasperreports":valueAxisLabelExpression,
"http://jasperreports.sourceforge.net/jasperreports":valueAxisFormat,
"http://jasperreports.sourceforge.net/jasperreports":domainAxisMinValueExpression,
"http://jasperreports.sourceforge.net/jasperreports":domainAxisMaxValueExpression,
"http://jasperreports.sourceforge.net/jasperreports":rangeAxisMinValueExpression,
"http://jasperreports.sourceforge.net/jasperreports":rangeAxisMaxValueExpression}'
is expected."
(Continue reading)

kulbir | 12 Sep 16:54 2009

values not coming while running ireport


I have writen a function . When i run that function in orcale backend , its
giving proper values from data base. But when i run that function from 
ireport ,  ireprot does gives any values .A blank page sis displayed
--

-- 
View this message in context: http://www.nabble.com/values-not-coming-while-running-ireport-tp25414456p25414456.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
Kishore Somanathan | 26 Aug 20:02 2009

Migrating a report from iReport to JasperServer - parseError

I have a simple report with a Chart at the bottom. Works fine in iReport. But when I try to move it to the server and run it from there, I get the following error.  Any idea what is going on? The Datasource is defined correctly on the server and tested it.

com.jaspersoft.jasperserver.api.JSExceptionWrapper: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'itemLabel'. One of '{"http://jasperreports.sourceforge.net/jasperreports":categoryAxisLabelExpression, "http://jasperreports.sourceforge.net/jasperreports":categoryAxisFormat, "http://jasperreports.sourceforge.net/jasperreports":valueAxisLabelExpression, "http://jasperreports.sourceforge.net/jasperreports":valueAxisFormat, "http://jasperreports.sourceforge.net/jasperreports":domainAxisMinValueExpression, "http://jasperreports.sourceforge.net/jasperreports":domainAxisMaxValueExpression, "http://jasperreports.sourceforge.net/jasperreports":rangeAxisMinValueExpression, "http://jasperreports.sourceforge.net/jasperreports":rangeAxisMaxValueExpression}' is expected.

com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'itemLabel'. One of '{"http://jasperreports.sourceforge.net/jasperreports":categoryAxisLabelExpression, "http://jasperreports.sourceforge.net/jasperreports":categoryAxisFormat, "http://jasperreports.sourceforge.net/jasperreports":valueAxisLabelExpression, "http://jasperreports.sourceforge.net/jasperreports":valueAxisFormat, "http://jasperreports.sourceforge.net/jasperreports":domainAxisMinValueExpression, "http://jasperreports.sourceforge.net/jasperreports":domainAxisMaxValueExpression, "http://jasperreports.sourceforge.net/jasperreports":rangeAxisMinValueExpression, "http://jasperreports.sourceforge.net/jasperreports":rangeAxisMaxValueExpression}' is expected.

        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)

        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)

        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214)

        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.compileReport(EngineServiceImpl.java:891)

        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.compileReport(EngineServiceImpl.java:1260)

        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.CacheableCompiledReports.getData(CacheableCompiledReports.java:58)

        at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryCache.saveData(HibernateRepositoryCache.java:180)

        at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryCache.getCachedItem(HibernateRepositoryCache.java:110)

        at com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryCache.cache(HibernateRepositoryCache.java:70)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)

        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)

        at com.jaspersoft.jasperserver.api.common.util.spring.ReattemptMethodInterceptor.invoke(ReattemptMethodInterceptor.java:51)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)

        at $Proxy7.cache(Unknown Source)

 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@...
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
prakash | 27 Aug 09:06 2009

Connect bean class in ireport


Daer sir

 I am prkash from india, I have developing web project using struts2 and
jsaper report.

 I have doubt in jasper report, how to connect bean class in jasper report
with  examples..

any one  know pls help me immediately........

Thanks & Regards
Prakash D

Thanks & Regards
Prakash D

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
prakash | 27 Aug 07:53 2009

Connect bean class in ireport

Daer sir

 I am prkash from india, I have developing web project using struts2 and
jsaper report.

 I have doubt in jasper report, how to connect bean class in jasper report
with  examples..

any one  know pls help me immediately........

Thanks & Regards
Prakash D

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
vishnukumar | 19 Aug 11:49 2009
Picon

List of parameters to PDF


Hi,

I am new to jasper reports. I am passing parameters as following.

List<String> courseModules = new ArrayList<String>();
    	List<String> marks = new ArrayList<String>();
    	
    	courseModules.add("spoken english");
    	courseModules.add("Medical Transcription");
    	marks.add("20");
    	marks.add("30");
		
    	Map model = new HashMap();
    	model.put("courseModules", courseModules);
	model.put(“marks”, marks); 

I use ResourceBundleViewResolver. In .jrxml, I map parameters as 

<parameter name="courseModules" class="java.util.List"/>
<parameter name="marks" class="java.util.List"/>

I got printed as 

[spoken English, Medical Transcription]
[20, 30]

But, my requirement is, I have to print like

   Course 			Mark
Spoken English  		30
Medical Transcription	40

I don’t know how to iterate the elements in the list in jrxml or any other
solution will be good as well.
Please, help me

Thanks
Vishnu
--

-- 
View this message in context: http://www.nabble.com/List-of-parameters-to-PDF-tp25041091p25041091.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
farzana shaik | 6 Aug 12:34 2009
Picon

Internationalization Code for Jasper Reports

Hi,
          We are facing problem in integrating internationalization with jasper reports.

Please tell us how to display pdf jasper reports in other Indian locale languages

how to access resource bundle in jrxml file and .java using jasper api.

Waiting for your reply..............


Thanks,
Farzana

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@...
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Gmane