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

venkatgvr

Members
  • Posts

    5
  • 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 venkatgvr

  1. Hi All, We have a requirement where in we have to generate pdf's in bulk. We might need to generate 7000 pdfs at a time where in each pdf can have around 700 pages in worst case. Please let us know, the best way to handle this, we are planning to use jasper reports for the same if it is feasibable. Thanks, Venkat
  2. Hi, We are trying to open the .jrxml which is having around 1500 lines of code. We are not able to open the document in IReport tool, below exception is the exception. "java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?" We tried to increase the memory to 1024 in ireport.conf by no use. default_options="--branding ireport -J-Xms512m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=1024m" Please let us know, the possible solution. Any help is highly appreciated. Thanks.
  3. Hi, Is their a way to pass the image path at runtime in jrxml. my requirement is to add couple of images in my test.jrxml, right now I have given images which are present in my local system (i.e c:\images\logo.gif), then complied the test.jrxml to test.jasper file, now I'm using the test.jasper file in java (servlet) to generate pdf. since image is pointing to my local system, it's working fine in my local system. but I cannot use above approch in the production system (linux), since it will looking for image which is present in production system. I'm looking for a way where I can pass the image pass at runtime or atleast I should be able to pass the relative path. Please can any one let us know the possible solution. Any help is highly appreciated. Thanks
  4. Hi, Thank you for your quick reply. Please can you post some sample java code to "determine which image to display on the report." at run time as post in below thread. Right now I'm using below sample code to pass data to text field at runtime, where name and address are text fields specified in jrxml. 1) Java Code 2) Jrxml content Any help is highly appreciated. Thanks. Code:1)<========================Java Code ==============================>String path = "D:\\dynamic_data";HashMap map = new HashMap();map.put("name", "tcs");map.put("address", "hyd");jasperReport = JasperCompileManager.compileReport(path+".jrxml");jasperPrint = JasperFillManager.fillReport(jasperReport, map, JasperExportManager.exportReportToPdfFile(jasperPrint, path+new JREmptyDataSourc());2)<=================JRXML Content======================><?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name=".jrxml" pageWidth="595" pageHeight="842" columnWidth="495" leftMargin="57" rightMargin="43" topMargin="43" bottomMargin="43"> <queryString language="SQL"> <![CDATA[]]> </queryString> <field name="name" class="java.lang.String"/> <field name="address" class="java.lang.String"/> <variable name="name" class="java.lang.String"/> <title> <band height="45" splitType="Stretch"/> </title> <pageHeader> <band height="45" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="25" splitType="Stretch"/> </columnHeader> <detail> <band height="73" splitType="Stretch"> <staticText> <reportElement x="106" y="12" width="62" height="15"/> <textElement/> <text><![CDATA[Name]]></text> </staticText> <textField isBlankWhenNull="false"> <reportElement x="224" y="12" width="72" height="15"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> </textField> <staticText> <reportElement x="106" y="42" width="62" height="13"/> <textElement/> <text><![CDATA[Address]]></text> </staticText> <textField isBlankWhenNull="false"> <reportElement x="224" y="41" width="72" height="15"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{address}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="45" splitType="Stretch"/> </pageFooter> <lastPageFooter> <band height="45" splitType="Stretch"/> </lastPageFooter> <summary> <band height="45" splitType="Stretch"/> </summary></jasperReport>
  5. Hi, I'm unable to find an option in ireport tool to add a check box to jrxml content. my requirement is to add check box in jrxml content and at run time when I generate the pdf report out of jrxml, I should be able to pass data which specifics whether the check box should be checked or not. i.e (for instance for name field I could able to add a field and text box at same time at run time I'm able to pass the name while generating the report similarly I'm expecting same for my check box funtionlity). please let us know the possible solution. Any help is highly appreciated. Thanks
×
×
  • Create New...