<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:dc="http://purl.org/dc/elements/1.1/"
					xmlns:atom="http://www.w3.org/2005/Atom"
					xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
				  >
<channel>
<title><![CDATA[Latest Hot Topics]]></title>
<link>http://jasperforge.org/</link>
<description><![CDATA[Hot topics]]></description>
<image><title><![CDATA[Latest Hot Topics]]></title>
<link>http://jasperforge.org/</link>
<url>http://jasperforge.org/themes/jasper/images/tools/logo.gif</url>
</image>
<language></language>
<pubDate>Wed, 16 May 2012 23:36:02 +0000</pubDate>
<item>
<title><![CDATA[Chart not showing labels & numbers]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97847</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>Hello,</p>
<p>We have a report that works fine in our old server. That report has a chart. You can see "reportOK.png" to see the result of the report.</p>
<p>We are changing from the old server to a new one, and the report doesn't work in the new server. The same chart is missing the labels and the label numbers (see "reportKO").</p>
<p>&nbsp;</p>
<p>We tried to add jasper-fonts to our classpath, and it solved a problem that we had since the beggining; the fonts not showing properly, but that solution didn't solve our main problem.</p>
<p>We are using jasper reports 3.7.3.</p>
<p>Anyone can help us?<br />
&nbsp;</p>
<p>Thanks, Sara</p><br><br>Post Edited by sgarciaf at 05/04/2012 07:01]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97847</guid>
</item>
<item>
<title><![CDATA[Prevent summary appearing on a new page]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97426</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>Hi everyone,</p>
<p>I have a rather simple report built using JasperReports 3.7.6</p>
<p>There're 2 bands in the report: details and summary. Summary band contains the only element which is subreport, which stands for displaying signatures.</p>
<p>The issue is that under some conditions summary appears on a new page which causes signatures appearing on a new sheet of paper when printed. This happens when the number of rows (details) fits the height of the page. I wish that in a such case the last row will be placed on a new page with a summary, but not only summary on a new page.</p>
<p>Please, provide me with some help.</p>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
    <tbody>
        <tr>
            <td><b>Code:</b></td>
        </tr>
        <tr>
            <td>
            <pre>
<?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 <a target="_blank" href="http://jasperreports.sourceforge.net/xsd/jasperreport.xsd""><a href="http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"" target="_blank">http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"</a></a> name="R1NPr1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="468" leftMargin="85" rightMargin="42" topMargin="56" bottomMargin="56">
	<property name="ireport.zoom" value="1.2100000000000006"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="IMNS_NAME" class="java.lang.String"/>
	<parameter name="CURRENCY_UNITS" class="java.lang.String"/>
	<parameter name="PERIOD_DESC" class="java.lang.String"/>
	<parameter name="SIGNATURES_JRXML" class="java.net.URL" isForPrompting="false"/>
	<parameter name="SIGNATURES_DATASOURCE" class="mns.svod.inspector.jasper.SignaturesDatasource" isForPrompting="false"/>
	<field name="values" class="java.util.Map"/>
	<field name="title" class="java.lang.String"/>
	<field name="code" class="java.lang.String"/>
	<title>
		<band height="64" splitType="Stretch">
			<textField pattern="dd.MM.yyyy">
				<reportElement x="388" y="0" width="80" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="0" y="0" width="334" height="64"/>
				<textElement>
					<font size="12"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["TITLE REMOVED " + $P{PERIOD_DESC}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="40" splitType="Stretch">
			<staticText>
				<reportElement mode="Transparent" x="0" y="20" width="264" height="20"/>
				<box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[Название платежа]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="264" y="20" width="70" height="20"/>
				<box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[Код]]></text>
			</staticText>
			<textField>
				<reportElement x="334" y="20" width="134" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Сумма (" + $P{CURRENCY_UNITS} + ")"]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="388" y="0" width="80" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression class="java.lang.String"><![CDATA["Лист "+$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="0" width="334" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{IMNS_NAME}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="18" splitType="Stretch">
			<staticText>
				<reportElement mode="Transparent" x="0" y="0" width="264" height="18"/>
				<box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[1]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="264" y="0" width="70" height="18"/>
				<box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[2]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="334" y="0" width="134" height="18"/>
				<box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[3]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="18" splitType="Prevent">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="264" y="0" width="70" height="18"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center">
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{code}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.0" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="334" y="0" width="134" height="18"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right">
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{values}.get(3) instanceof java.math.BigDecimal ? $F{values}.get(3) : null]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="264" height="18"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{title}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="34" splitType="Prevent">
			<subreport>
				<reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" x="0" y="16" width="468" height="18"/>
				<dataSourceExpression><![CDATA[$P{SIGNATURES_DATASOURCE}.getDataSource()]]></dataSourceExpression>
				<subreportExpression class="java.net.URL"><![CDATA[$P{SIGNATURES_JRXML}]]></subreportExpression>
			</subreport>
		</band>
	</summary>
</jasperReport></pre>
            </td>
        </tr>
    </tbody>
</table><br><br>Post Edited by freeshka at 04/16/2012 08:47]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97426</guid>
</item>
<item>
<title><![CDATA[Help adding fields together]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97886</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>Hi I have a jasper report in which i am trying to add some fields together to get a printing address on one line</p>
<p>The problem is that I need to know how to code an "IF" statement to only show the field if it is not empty, e.g:</p>
<p>My code says</p>
<p>$P{billToPrintingAddress5}+ "," + $P{billToPrintingAddress6}</p>
<p>&nbsp;</p>
<p>I need to put an IF statement around each field to only display that field if is not empty, but I still need the other fields to display</p>
<p>Eg address 1,2,3,4,5, are usually populated but 6 and 7 are often not, meaning that on my report I end up with </p>
<p>Andy, 32 High Street, Somewhere, Sometown,Someplace, null, null, null </p>
<p>&nbsp;</p>
<p>Any help would be appreciated!</p>
<p>AB</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97886</guid>
</item>
<item>
<title><![CDATA[Font provided by Font Extension not working in charts or PDF export]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97920</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p><span style="font-family: Arial; ">Hi all,</span></p>
<p><span style="font-family: Arial; ">We are using the JasperReports engine 4.5.0, and reports designed with iReport 4.5.1. We have packaged the Arial font in an extension jar as described in the documentation; when I debug starting from the SimpleFontExtensionHelper class, I can see the font jar being read and new SimpleFontFace instances being created for each .TTF file inside.When reports which specify "Arial" as a text font (for both report text and chart labels) are generated on a server which doesn't have Arial installed (which is the case for many/most Linux server deployments) then the server-rendered Arial text doesn't work. This shows up differently for both PDF export and JFreeChart generation.When a PDF is generated, the following exception is logged:</span></p>
<pre><p><span style="font-family: 'Courier New'; ">Caused by: net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more details.</span></p><p><span style="font-family: 'Courier New'; "><span class="Apple-tab-span">	</span>at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:358)</span><span style="font-family: Arial; "><br /></span></p><p><span style="font-family: Arial; ">etc., </span></p></pre>
<p><span style="font-family: Arial; ">and an empty PDF is generated. For those charts which specify Arial as a title or legend font, a fallback font is chosen from the operating system, often with very different metrics. If either Arial is installed on the OS or the correct .TTF files are dropped into the JRE's lib/fonts/ directory, both chart and PDF generation work as expected. If anyone can suggest what we can do to get the font extension working, I would be very grateful.</span><font face="Arial"><br />
</font></p><br><br>Post Edited by jamesbutler at 05/07/2012 21:10]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97920</guid>
</item>
<item>
<title><![CDATA[Empty pdf file (0 kb) when exporting report to PDF as a stand-alone application]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97957</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>&nbsp;I'm coding an application using Netbeans as IDE to deal and interchange data between an Access database and a PBX software that uses firebird. Everything was fine until I reached the reports issue.</p>
<p>Working in Netbeans IDE everything worked really fine. Report is created and converted to the file type I wanted (rtf, odt, pdf...), but when a take the content of the "dist" folder (where the compiled application is stored by Netbeans with all the needed libraries) and execute the application, the report is created sucessfully but when it try to save it as PDF file, the only output is a empty (0 kb occupied) PDF file. I tried with other file types, like rtf and odt, and the application works great in both situations, runned using Netbeans IDE and as a stand-alone application.</p>
<p>Is there an specific library or reference that is loaded in Netbeans IDE but not imported when compiled as a stand-alone application? may be is another silly thing? any help or thoughts?</p>
<p>Thanks.</p><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>//IMPORT SECTION

package contactosagenda;
import java.awt.Cursor;
import java.awt.Desktop;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.plaf.DesktopPaneUI;
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.export.JRPdfExporter;
import net.sf.jasperreports.engine.util.JRLoader;
import net.sf.jasperreports.engine.export.oasis.JROdtExporter;

//REPORT LAUNCHER

private void lanzaInforme(Clientes listado){
        try {                
            JasperReport informe = (JasperReport)JRLoader.loadObject(new File(System.getProperties().getProperty("user.dir") + System.getProperty("file.separator")+"reportClientes.jasper"));                    
            JRDataSource j = listado.getReportDataSource();            
            JasperPrint reportPrint = JasperFillManager.fillReport(informe,null,j); 
            
            //JRExporter export = new JRPdfExporter();
            //JRExporter export = new JRRtfExporter();
            JRExporter export = new JROdtExporter();
            export.setParameter(JRExporterParameter.JASPER_PRINT, reportPrint);
            String ruta = System.getProperties().getProperty("user.dir") + System.getProperty("file.separator") + "temp.odt";
            //File f = File(ruta);
            export.setParameter(JRExporterParameter.OUTPUT_FILE, new File(ruta));
            
            export.exportReport();            
            //Desktop.getDesktop().open(new File(ruta));
            //JOptionPane.showMessageDialog(this.getParent(),"El archivo debe estar enn" + f.getPath());                
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this.getParent(), "Se ha producido el siguiente error:n" + ex);
            Logger.getLogger(Principal.class.getName()).log(Level.SEVERE, null, ex);            
        }
    }</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97957</guid>
</item>
<item>
<title><![CDATA[Time Series Chart: Time Period]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97533</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>Hey there,</p>
<p>I'm currently facing some problems with time periods within a time series chart.</p>
<p>What I want to achiveve:<br />
- User can choose two dates; The data between those dates is going to be reported<br />
- User can also choose the time period [Year, Month, Day] before creating report</p>
<p>The way I'm trying to set time period is by setting the attribute timePeriod by Parameter like this: <br />
<span style="font-family: Courier New;"><timeSeriesDataset timePeriod="$P{TimePeriod}"></span></p>
<p>But when trying to compile, I'm getting the following error:<br />
<span style="font-family: Courier New;">org.xml.sax.SAXParseException: cvc-enumeration-valid: Value '$P{TimePeriod}' is not facet-valid with respect to enumeration '[Year, Quarter, Month, Week, Day, Hour, Minute, Second, Milisecond]'. It must be a value from the enumeration.</span></p>
<p>I've tried everything (e.g. changing Parameter data type, ...) but I'm always ending up getting this error. Is it even possible to set timePeriod dynamically? And how to achieve it?</p>
<p>Help would be really appreciated, it's an urgent problem :-)</p>
<p>&nbsp;</p>
<p>Thanks in advance for your help,<br />
klindstroem</p><br><br>Post Edited by klindstroem at 04/20/2012 07:33]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97533</guid>
</item>
<item>
<title><![CDATA[JasperReports upgrade from 1.3.2 to 4.0.2]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97601</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>I have inherited some jasper reports that work with 1.3.2 jar, but give the below error when i upgrade to 4.0.2. Any ideas how to fix this one. Also need tips from who have already upgraded, as what needs to be changed.</p>
<p>java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.commons.digester.Rule<br />
&nbsp;&nbsp;&nbsp; at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)<br />
&nbsp;&nbsp;&nbsp; at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)<br />
&nbsp;&nbsp;&nbsp; at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)<br />
&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:248)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.components.ComponentsExtensionsRegistryFactory.<clinit>(ComponentsExtensionsRegistryFactory.java:91)<br />
&nbsp;&nbsp;&nbsp; at java.lang.Class.forName0(Native Method)<br />
&nbsp;&nbsp;&nbsp; at java.lang.Class.forName(Class.java:247)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.util.ClassUtils.instantiateClass(ClassUtils.java:53)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:236)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:162)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:132)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:104)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:81)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:182)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.reports.jasperreports.ReportBean.fillCompiledReport(ReportBean.java:643)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.reports.JasperDataSource.fillReport(JasperDataSource.java:128) <br />
&nbsp;&nbsp;&nbsp; at com.netexp.ui.controller.Controller.doProcess(Controller.java:198)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.ui.controller.Controller.process(Controller.java:96)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.ui.controller.JavaClientServlet.processSecure(JavaClientServlet.java:101)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.ui.controller.JavaClientServlet.doPost(JavaClientServlet.java:74)<br />
&nbsp;&nbsp;&nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)<br />
&nbsp;&nbsp;&nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.ui.DoubleFilter$DoubleStopper.join(DoubleFilter.java:652)<br />
&nbsp;&nbsp;&nbsp; at com.netexp.ui.DoubleFilter.doFilter(DoubleFilter.java:670)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
&nbsp;&nbsp;&nbsp; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<br />
&nbsp;&nbsp;&nbsp; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)<br />
&nbsp;&nbsp;&nbsp; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br />
&nbsp;&nbsp;&nbsp; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br />
&nbsp;&nbsp;&nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)<br />
&nbsp;&nbsp;&nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br />
&nbsp;&nbsp;&nbsp; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br />
&nbsp;&nbsp;&nbsp; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)<br />
&nbsp;&nbsp;&nbsp; at java.lang.Thread.run(Thread.java:662)<br />
&nbsp;</p>
<p>&nbsp;</p>
<p><br />
<br />
Post Edited by sma3har at 04/23/2012 15:18</p><br><br>Post Edited by sma3har at 04/23/2012 15:18]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97601</guid>
</item>
<item>
<title><![CDATA[Problems displaying a PDF]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97606</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>Hello,</p>
<p>&nbsp;</p>
<p>I am having issues getting a pdf to display. I can bring up a pdf in the JasperViewer but I am trying to just get a pdf to open independent of the viewer.</p>
<p>I have included the code for the viewer, only to show that is is working.</p>
<p>I have attache my code.</p><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>private static final String Report_Def = ******MY JRMXL FILE*********
private static final String Report_DataSource = ******MY DB CONNECTION********

public String ActionButton(){
  try{
 
//Load jrmxl file
JasperDesign reportDefinition = JRMxlLoader.load(new FileInputStream(new File(Reprot_Def);

//Compile
Jasper Report report = JasperCompileManager.compileReport(reportDefinition);

//Get DB Data
initialContext initalContext = new initialContext();
DataSourec ds = (DataSource)initialContext.lookup(Report_DataSource);

//Fill the jrmxl template with data
JasperPrint print = JasperFillManager.fillReport(report, new HashMap<String, Object>(), ds.getConnection());

//View in jasperViewer
JasperViewer.viewReport(print, false);

//Display in pdf
OutputStream output = new FileOutputStream(new File(***MY CREATED PDF FROM ABOVVE***));
JasperExportManager.exportReportToPdfFile(print, **LOCATION OF MY FILE***);
}catch(Exception e){
e.printStackTrace();
}}</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97606</guid>
</item>
<item>
<title><![CDATA[chart images is not working]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97776</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>&nbsp;Hi all,</p>
<p>&nbsp;</p>
<p>Can somebody help me to get the chart images in html output in jaspre report ?</p>
<p>The chart images properly coming in the pdf output, but in html output the chart images are coming as a &nbsp;broken images mamed img_0_0_0 from the images path of the application, actually these images are not there, and also in pdf format the chart images are repated ly printing. like suppose the list containg 5 values the number chart displaying 5.</p>
<p>&nbsp;</p>
<p>can somebody help me how to resolve this issue, plases reply soon.</p>
<p>&nbsp;</p>
<p>Thanks in advance.</p>
<p>Thanks & Regards</p>
<p>Abinash Sahu</p><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>My stuts.xml

<action name="getMenuUtilizationChart" class="com.realsoftinc.demoreport.action.ReportOneAction" method="reportChart">
			<result name="success" type="jasper">
				<param name="location">
                    jasper/report4.jasper
                </param>
                <param name="dataSource">jasperChartList</param>
             
                
			</result>

My action class....
	public String reportChart()
		 {
			 
				  JasperReport jasperReport;  
				  JasperPrint  jasperPrint;  
				  JasperDesign jasperdesign; 
				  
				  FileReadWriteOperation frwo = null;
				  try{
					  frwo = new FileReadWriteOperation();
					  jasperChartList=frwo.showReportChart();
					  String reportSource;
					  String sourceFile;

			          reportSource = ServletActionContext.getServletContext()   
			                    .getRealPath("/jasper/report4.jrxml"); 
			          
			          HashMap map = new HashMap();
			         
			          
			         
			        
			         JRBeanCollectionDataSource datasource = new JRBeanCollectionDataSource(jasperChartList);
			         jasperReport = JasperCompileManager.compileReport(reportSource);
			         jasperPrint = JasperFillManager.fillReport(jasperReport, map, datasource);
			       
			       JRHtmlExporter exporter = new JRHtmlExporter();
			         ServletActionContext.getResponse().setContentType("text/html");
			         PrintWriter responseStream = ServletActionContext.getResponse().getWriter();
			 		request.getSession(true).setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
						
						/*byte[] output = null ;*/
						
						
						exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
						exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, responseStream);
						
						
						exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,Boolean.FALSE);
						//exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, request.getContextPath() + imageServletUrl);
						exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "images?image=");
						
						exporter.exportReport();
			       
			         
				  }catch (Exception e) {
					// TODO: handle exception
					  e.printStackTrace();
				}
			 return SUCCESS;
		 }</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97776</guid>
</item>
<item>
<title><![CDATA[Subreport return value using for "print when expression"]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97958</link>
<pubDate>Wed, 16 May 2012 18:36:02 +0000</pubDate>
<description><![CDATA[<p>We have a main report, with an subreport. When in the subreport no records are printed, we want to suppress the printing of the record in the main report.</p>
<p>Is this possible. How?</p>
<p>Thanx Hanno</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=97958</guid>
</item>
</channel>
</rss>
