<?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 Topics]]></title>
<link>http://jasperforge.org/</link>
<description><![CDATA[Forge Latest forum topics]]></description>
<image><title><![CDATA[Latest 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:42:06 +0000</pubDate>
<item>
<title><![CDATA[How to retrieve report name from within scriptlet]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98111</link>
<pubDate>Wed, 16 May 2012 18:11:45 +0000</pubDate>
<description><![CDATA[<p>How can I, from within a scriptlet, retrieve the name of a report.</p>
<p>The name of the report is in the JRXML&nbsp;<jasperReport ... name="TestImage" ...></p>
<p>So in my scriptlet I want to access the name attribute and get TestImage.</p>
<p>Please could anyone drop a line of scriptlet code ...</p><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports <a href="http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"" target="_blank">http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"</a> 

name="TestImage" 

language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98111</guid>
</item>
<item>
<title><![CDATA[How to programmatically make changes to report using JRXmlLoader - Figured Out]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98105</link>
<pubDate>Wed, 16 May 2012 15:50:19 +0000</pubDate>
<description><![CDATA[<p>I have a report template (.jrxml file) that I am loading using the JRXmlLoader object to load it into my application. The problem I am running into is now how do I modify the objects within the loaded jrxml file. All of the functions and objects that are returned from any of the function calls are read only, you can't modify the object.</p>
<p>Am I missing something or do I need to make the entire report in Java then compile it or can I take an existing template (.jrxml) and modify that file from within my application.</p>
<p>Any help would be appreciated.</p>
<p>Thanks.</p>
<p>Mike</p>
<p>&nbsp;</p>
<p>I figured out how to make everything work correctly. I did not know that I had to cast the objects retrieved from the JRXmlLoader to their "Design" equivalent. For example, when I was retrieving a textfield from the elements in a band I had to cast it to "JRDesignTextField" in order to modify the object.</p>
<p>&nbsp;</p><br><br>Post Edited by mshoe at 05/16/2012 17:04]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98105</guid>
</item>
<item>
<title><![CDATA[Urgent: Passing a java.util.Collection parameter to an Oracle function]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98103</link>
<pubDate>Wed, 16 May 2012 15:36:10 +0000</pubDate>
<description><![CDATA[<p>&nbsp;Hi all,&nbsp;</p>
<p>&nbsp;</p>
<p>I have a plsql pipeline function, that I use in my main report query.</p>
<p>The function defenition is:&nbsp;</p>
<p>&nbsp; &nbsp; Function getMeasuresValues(installation VARCHAR2, samplingInterval NUMBER, type VARCHAR2, subtype VARCHAR2, beginPeriod DATE, endPeriod DATE) &nbsp;RETURN MeasureList PIPELINED;&nbsp;</p>
<p>and the report query is:</p>
<p>SELECT * FROM TABLE (reporting.getMeasuresValues($P{installation},$P{samplingInterval},$P{equipmentType},$P{equipmentSubtype},$P{periodIni},$P{periodEnd}))</p>
<p>&nbsp;</p>
<p>All is working great, but now, it need to convert the subtype parameter, which was a java.lang.String, to a java.util.Collection!</p>
<p>I have spent some hours trying to figure this out by doing some experiments and searching forums. But without success....</p>
<p>&nbsp;</p>
<p>Notice that I don't wan't to pass the collection to the Function as a String with some king of separator like " 'aaa', 'bbb', 'ccc' " I will only do this if all the rest fails.</p>
<p>&nbsp;</p>
<p>Does anyone know if this is possible? Wich type do I need on the function side? How's the query string?</p>
<p>&nbsp;</p>
<p>Thaks in advance,</p>
<p>Rui Rocha</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br />
<br />
Post Edited by desousarocha at 05/16/2012 15:38</p><br><br>Post Edited by desousarocha at 05/16/2012 16:14]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98103</guid>
</item>
<item>
<title><![CDATA[BLOB to JRDesignImage]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98101</link>
<pubDate>Wed, 16 May 2012 13:52:35 +0000</pubDate>
<description><![CDATA[<p>&nbsp;Hi</p>
<p>I have a requirement to replace an image holder in a report at runtime.</p>
<p>I can pull the logo out of the DB (from a BLOB) into a byte[].</p>
<p>How do I now get it to fill in the image place holder on the report?</p>
<p>I am using JasperReports Library 4.5.1.</p>
<p>I have looped through the bands and found the JRDesignImage I want to update.</p>
<p>&nbsp;Any help please.</p>
<p>&nbsp;Regards<br />
Shaun</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98101</guid>
</item>
<item>
<title><![CDATA[Choosing sticker position]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98089</link>
<pubDate>Tue, 15 May 2012 14:03:28 +0000</pubDate>
<description><![CDATA[<p>&nbsp;</p>
<p>Hi,</p>
<p>I made a report which consists of 2 x 2 stickers printed on A4 (4 stickers per page).&nbsp;&nbsp;It consists on a subreport that print the label/sticker on 2 columns&nbsp;following the order:<br />
&nbsp;</p>
<table width="200" border="1" cellspacing="1" cellpadding="1">
    <tbody>
        <tr>
            <td style="text-align: center;">1</td>
            <td style="text-align: center;">3</td>
        </tr>
        <tr>
            <td style="text-align: center;">2</td>
            <td style="text-align: center;">4</td>
        </tr>
    </tbody>
</table>
<p>&nbsp;</p>
<p>How can I choose the position of the first sticker?</p>
<p>i.e.: the first time I print the report it prints 7 stickers, so I still have 1 sticker unused on the last sheet of stickers. The next time I use the report I would like to choose the position of the sticker, so I could use that one left sticker on the last sheet.<br />
&nbsp;</p>
<p>Thanks in advance.<br />
&nbsp;</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98089</guid>
</item>
<item>
<title><![CDATA[Strange error]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98087</link>
<pubDate>Tue, 15 May 2012 13:50:00 +0000</pubDate>
<description><![CDATA[<p>Hi!!!</p>
<p>I'm making some test with a software that uses Jasper Reports and I'm totally lost with this error:</p>
<p>Caused by: java.lang.ClassNotFoundException: org.codehaus.mojo.jasperreports.MavenJavacCompiler<br />
&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:202)<br />
&nbsp;&nbsp;&nbsp; at java.security.AccessController.doPrivileged(Native Method)<br />
&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br />
&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:306)<br />
&nbsp;&nbsp;&nbsp; at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627)<br />
&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:247)<br />
&nbsp;&nbsp;&nbsp; at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:460)</p>
<p>I searched for class "org.codehaus.mojo.jasperreports.MavenJavacCompiler" without success so I don't know what jar I need to add to resolve this...in the case that the problem is that. </p>
<p>Can someone provide me a configuration file check , debug option, something....to solve this error? </p>
<p>I'm using this version: jasperreports-3.7.6.jar</p>
<p>Thanks!</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98087</guid>
</item>
<item>
<title><![CDATA[Removing extra whitespaces in a Text Field]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98086</link>
<pubDate>Tue, 15 May 2012 11:59:53 +0000</pubDate>
<description><![CDATA[<p>I am a newbie here, so apologies if my question seems stupid. <</p>
<p>I have a Text Field with width of 140. The value that populates it can vary in length from 50 to 130.</p>
<p>What happens now is, there is a huge gap between this Text Field and the next report element. My report looks like this(The name is a dynamic value) :</p>
</br>
<p>I, Mark Rogers &nbsp; &nbsp;    , the undersigned employee</p>
<br>
<p>when I want it to be</p>
<p>I, Mark Rogers, the undersigned employee</p>
<br>
<p>I have tried trim() on the Text Field. But I realized that this works only if there are trailing spaces in the dynamic value and it does not trim the Text Field white spaces.  Is there a way to remove these extra white spaces in the Text Field after the it is populated?  Or is the best work around to reduce the width of the Text Field and give a Stretch with Overflow?</p><br><br>Post Edited by medusa30 at 05/15/2012 12:11]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98086</guid>
</item>
<item>
<title><![CDATA[Help Needed]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98082</link>
<pubDate>Tue, 15 May 2012 09:28:17 +0000</pubDate>
<description><![CDATA[<p>&nbsp;Hi ,<br />
<br />
I need abit of help in generating jasper reports . i new to jasper reports<br />
using crosstab to generate XLS.<br />
<br />
Scenario: Need to generate Statistics of the previous month count of application coming in and current month till the date of enquiry.<br />
<br />
Question 1)Does Crosstab accepts mulitple queries?<br />
<br />
Question 2)Can combine 2 crosstab in to report.<br />
<br />
Crosstab 1<br />
Application Type &nbsp; 01/01/2012 &nbsp;| 02/01/2012 | 03/01/2012 | .... 30/01/2012 | Total &nbsp;| &nbsp; &nbsp;01/02/2012 &nbsp;| 02|02|2012 | 03/02/2012 ...<br />
______________________________________________________________<br />
Sample 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;30<br />
Sample 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 40&nbsp;<br />
<br />
if i want to have another crosstab beneath the orginal crosstab 1. Can be done?<br />
<br />
Any better solution to the above scenario?&nbsp;<br />
&nbsp;</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98082</guid>
</item>
<item>
<title><![CDATA[Problem when trying to open powerpoint in windows xp generated by iReport.]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98071</link>
<pubDate>Mon, 14 May 2012 17:39:45 +0000</pubDate>
<description><![CDATA[<p><span class="hps">Using</span> <span class="hps">iReport</span> <span class="hps">tools</span> <span class="hps">to generate a</span> <span class="hps">powerpoint</span> <span class="hps">is a problem</span> <span class="hps">when trying to</span> <span class="hps">open it in</span> <span class="hps">windows</span> <span class="hps">xp.</span> <span class="hps">In</span> <span class="hps">windows vista</span> <span class="hps">and</span> <span class="hps">windows 7</span> <span class="hps">has no</span> <span class="hps">problem</span> <span class="hps">opening it</span><span>.</span> <span class="hps">Know someone who</span> <span class="hps">might be going</span><span>?</span> <span class="hps">I use</span> <span class="hps">iReport</span> <span class="hps">4.0.2</span></p>
<p><span class="hps">Thanks</span> <span class="hps">for the support.</span></p><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>ByteArrayOutputStream pptStream = new ByteArrayOutputStream();
JRPptxExporter pptxExporter = new JRPptxExporter();
pptxExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
pptxExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, pptStream);
try {
   pptxExporter.exportReport();
} catch (JRException ex) {
   System.out.println("ERROR : " + ex.getMessage());

}
pptStreamByteArray = pptStream.toByteArray();
</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98071</guid>
</item>
<item>
<title><![CDATA[printing blank lines to fill the page]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98064</link>
<pubDate>Mon, 14 May 2012 16:47:27 +0000</pubDate>
<description><![CDATA[<p>&nbsp;hi</p>
<p>a seemingly simple problem - but not quite.</p>
<p>i need to fill the remainder of the last page with blank lines. so basically the table in the report ends and then i want to hve blank lines from the last row to the bottom of that page.</p>
<p>i have created a scriptlet where i store and evaluate where the last row with data ended. i then know the page that happened on so i keep printing a row until the current page is greater than the page where the last data row ended. i then return false for the expression so no more rows are printed.</p>
<p>this is a start - but, the report still goes one page further so i need to cut it off sooner... if i could get access the JRFiller doing the work i could compare the y offset to the page height and then cut off sooner for the blanks before it crosses to the next page and asks again whether to print the blank one. The JRFiller seems to be unreachable though... i can get the JasperReport object, but i can't see the filler from here.</p>
<p>any suggestions to achieve this would be most appreciated. thanks :)</p>
<p>current scriptlet looks something like below.</p>
<div>&nbsp;</div>
<p>&nbsp;</p><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>    public Boolean shouldPrintBlankLine() throws JRScriptletException {

        Boolean fieldValue = (Boolean) getFieldValue("blank");
        if (BooleanUtils.isTrue(fieldValue)) {
            
            Integer currentPage = (Integer) getVariableValue("PAGE_NUMBER");
            if (pageNumberWithFirstBlankRow == -1) {
            
                pageNumberWithFirstBlankRow = currentPage;
            
            } else if (pageNumberWithFirstBlankRow < currentPage) {
                
                return false;
            }

            return true;
        }
        
        return false;
    }
</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=102&amp;forumid=103&amp;topicid=98064</guid>
</item>
</channel>
</rss>
