Jump to content
We've recently updated our Privacy Statement, available here ×

manigandanms

Members
  • Posts

    13
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by manigandanms

  1. Hi Teodor, White space is gone once I added the subreport in different detail band!!!! Thanks very much for your support, its highly appreciated. In the maven global repository http://repo2.maven.org/maven2/ there is no support for Jasper 3.6.1, I have read in few of the issues posted with this regards and the solution was to use our local repository. Any comments on this? Thanks, Mani
  2. Hi Teodor, Please find attached sample reports generated. I have assigned 4 different colors(Main report followed by 3 subreports) so that it will be easy to identify. Report file sampleReportWithoutPrintWhenCondition.pdf In this sample report I have not used printWhenExpression on the frames <reportElement>. Sample code as below. <frame> <reportElement positionType="Float" mode="Opaque" x="15" y="47" width="472" height="20" isRemoveLineWhenBlank="true" backcolor="#9999FF"/> <textField isStretchWithOverflow="true" isBlankWhenNull="false"> <reportElement style="Arial_Bold" positionType="Float" mode="Opaque" x="1" y="-1" width="141" height="20" isRemoveLineWhenBlank="true" backcolor="#9999FF"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$R{generic.label.residential}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement key="" style="Arial_Normal" positionType="Float" mode="Opaque" x="142" y="0" width="329" height="20" isRemoveLineWhenBlank="true" backcolor="#9999FF"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{county.concatenatedDescription}]]></textFieldExpression> </textField> </frame> Report file sampleReportWithPrintWhenCondition.pdf In this sample report I have used printWhenExpression on the frames <reportElement>. Sample code as below. <frame> <reportElement positionType="Float" mode="Opaque" x="15" y="47" width="472" height="20" isRemoveLineWhenBlank="true" backcolor="#9999FF"> <printWhenExpression><![CDATA[$F{county.concatenatedDescription}!=null]]></printWhenExpression> </reportElement> <textField isStretchWithOverflow="true" isBlankWhenNull="false"> <reportElement style="Arial_Bold" positionType="Float" mode="Opaque" x="1" y="-1" width="141" height="20" isRemoveLineWhenBlank="true" backcolor="#9999FF"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$R{generic.label.residential}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement key="" style="Arial_Normal" positionType="Float" mode="Opaque" x="142" y="0" width="329" height="20" isRemoveLineWhenBlank="true" backcolor="#9999FF"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{county.concatenatedDescription}]]></textFieldExpression> </textField> </frame> Note: My report is based on 2 attributes like label and its corresponding value. I am using printWhenCodition in the <reportElement> of the frame since I dont want to print the label when there is no corresponding value. Please let me know if my apprach is right. Thanks, Mani Post Edited by manigandanms at 11/24/2009 09:34 Post Edited by manigandanms at 11/24/2009 09:36
  3. Hi Teodor, I have upgraded Jasper to the latest edition 3.6.1 and set the detail band splitType=Immediate but I can still see white space in my pdf report. Any suggestions please? Thanks, Mani Post Edited by manigandanms at 11/24/2009 07:38
  4. Hi Teodor, I had attached the csv data file as you had asked for, were you able to mimic the problem? Please let me know. Thanks, Mani
  5. I cross checked my deployed ear file which generates the report and it is having jasper 3.5.3 version. Can you point me to a sample code which uses <jr:list> ?
  6. I am using iReport to only build the report template (.jrxml). To test if this is working I make a .jasper file with the maven plugin and then use my application to retrieve the records from the database and fill it to the generated template. I am using iReport 3.5.2 and in maven to compile and package my application I use jasper 3.5.3 Do you recommend replacing the subreports with <jr:list> component to iterate the list and display the recordset? I tried using sample code snippet as below but I dont know how to declare the variables in it and i dont see any example in the demo folder of jasper. <componentElement> <reportElement positionType="Float" x="15" y="386" width="400" height="20"/> <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="dataset1"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{primarySksCodes})]]></dataSourceExpression> </datasetRun> <jr:listContents height="20"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="1" y="0" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{code.concatenatedDescription}]]/> </textField> </jr:listContents> </jr:list> </componentElement> I have also attached sample data which is in csv format. Please look at it. Between we am struck with this problem from more than a week, we are also thinking of evaluating other tools if this becomes the road block for us.
  7. Changing the subreport element height=1 didnt make any difference in the report output. I have attached souce code of the 3rd subreport. Please find it attached.
  8. Could be. I have attached the subreport. Please let me know if I am doing something wrong. I have also attached the sample report as a gif file (sampleReport.GIF). In the screen shot the left panel report is printed which doesnt have the printwhenexpression on the frame element so it prints the label and corresponding text. And in the right panel in the sample screenshot you can see white space though there is content which needs to be continued. In this report template it contains printwhenexpression on the frame element. Post Edited by manigandanms at 11/23/2009 10:16
  9. I was compiling the JRXML using 3.5.1 thats how splitType=Immediate was not working. But once I changed the compiler version to 3.5.3 it was generating .jasper files. But the original problem of getting white space when there was no data printed is still there. Post Edited by manigandanms at 11/20/2009 15:25 Post Edited by manigandanms at 11/20/2009 15:26
  10. splitType=Immediate is not supported in the jasper version which I am using. I am using Jasper 3.5.3, I used isSplitAllowed=true instead but it didnt serve the purpose. I still get white spaces in the report. Ahh!!!! Post Edited by manigandanms at 11/19/2009 14:11
  11. On the detail band I selected splitType="Immediate" but when I compile my jrxml I get an compilation error. Error compiling report design : D:ManiHomeprojectslprmodulesservicesreportsrcmainjasperreportserrorContactsPDF.jrxml Error compiling report design : D:ManiHomeprojectslprmodulesservicesreportsrcmainjasperreportserrorContactsPDF.jrxml : org.xml.sax .SAXParseException: cvc-complex-type.3.2.2: Attribute 'splitType' is not allowed to appear in element 'band'. Post Edited by manigandanms at 11/19/2009 14:11
  12. Hi, I am using Jasper 3.5.1. I have designed my report using iReport. I have a main report in which I am calling 2 subreports. My report data is represented as below. Column Label1 : Column Value1 Column Label2 : Column Value2 Column Label N : Column Value N I have put the label and value in a frame so that when the data in the value is too big the next column will get adjusted accordingly. I have represented the above label and value in text field who's position is float. So far so good. When there is no corresponding value for a label I am not printing the label and column to save space in the report. This also works great. But in the end of each page based on the number of label/Value I dont print, I get empty lines. Please let me know if you have any solution to get rid of empty space. Thanks, Mani Post Edited by manigandanms at 11/17/2009 09:14
  13. Hi, I am using Jasper 3.5.0 to generate pdf report. It works fine on windows xp but on the linux platform it throws an error while filling the report. Find below code snippet. swapFile = new JRSwapFile(REPORT_GENERATION_PATH, 2048, 2048); JRSwapFileVirtualizer virtualizer = new JRSwapFileVirtualizer(2, swapFile, true); parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer); JasperPrint jasperPrint = JasperFillManager.fillReport(REPORT_TEMPLATE_PATH + reportFileNameWithoutExt + ".jasper", parameters, dataSource); Error Stack trace: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:176) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:628) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:544) Thanks, Mani
×
×
  • Create New...