<?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:59:31 +0000</pubDate>
<item>
<title><![CDATA[Unable to create SQLite Data Source because Username ist required]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=112&amp;forumid=102&amp;topicid=98115</link>
<pubDate>Wed, 16 May 2012 20:06:25 +0000</pubDate>
<description><![CDATA[<p>Hi all,</p>
<p>I created severeal reports based on a SQLite databse, all runs fine in iReport. Now, I would like to run these reports in Jasper Server 4.5. I put the SQLite JDBC driver into Jasper Server classpath, but I'm not able to create a SQLite datasource: The Data Source&nbsp;Administration UI requires an Username for database access. Because my SQLite database is&nbsp;free of any&nbsp;username / password (SQLite doesn't&nbsp;support this?) I&nbsp;can't pass any Username and I find no way to keep this option empty to create the Data Source.</p>
<p>Could anybody giv me a hint to solve this problem? Any hekp is appreciated, kind regards. Matthias.</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=112&amp;forumid=102&amp;topicid=98115</guid>
</item>
<item>
<title><![CDATA[setting of axisFormat tickLabelMask]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98113</link>
<pubDate>Wed, 16 May 2012 19:17:55 +0000</pubDate>
<description><![CDATA[<p>using Ireport 4.5.1 with jasperserver 4.5. &nbsp;When adding a mask for for the tick label mask wither in the properities in the interface or manually adding via XML i can get it to work in preview mode. &nbsp;Once i copy it up to the server it removes it from my code. &nbsp;Any ideas how to work around this?</p>
<p>&nbsp;</p>
<p>Here is the xml code that is getting wiped:</p>
<p>
<pre style="background-color: rgb(230, 230, 230); padding-top: 0.75em; padding-right: 1.5em; padding-bottom: 0.75em; padding-left: 1.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-image: initial; overflow-x: scroll; overflow-y: scroll; width: 650px; height: 175px; color: rgb(51, 51, 51); line-height: 18px; text-align: left; ">
  <valueAxisFormat>
    <axisFormat tickLabelMask="#,##0"/>
  </valueAxisFormat>
</pre>
</p>
<p>Not sure what else to do with this....</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98113</guid>
</item>
<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[MongoDB Aggegate $group - strings returned as null]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=112&amp;forumid=107&amp;topicid=98109</link>
<pubDate>Wed, 16 May 2012 17:28:17 +0000</pubDate>
<description><![CDATA[<br>Hi,
<br>I have MongoDB shell 2.1.1
<br>Aggregate query executes as expected in  MongoDB shell
<br><br>mongodb query:
<br>db.rpt1.aggregate({ $unwind : "$processes" },{$group:{_id:{"feature":"$feature", <br>"value":"$value"}, count: {$sum: 1}}});

<br><br>returns:
<br>
<br>{   "result" : [{
<br>                        "_id" : {
<br>                                "feature" : "Function",
<br>                                 "value" : "populated" },
<br>                        "count" : 3}, ],
<br>         "ok" : 1
<br> }
<br><br>The same query in ireports returns null values:
<br>
<br> { runCommand: {
<br>  aggregate : "rpt",
<br>  pipeline : [
<br>   { $unwind : "$processes" }, 
<br>     { $unwind : "$processes" }, 
<br>  {$group:{_id:{"feature":"$feature", "value":"$value"}, count: {$sum: 1}}} ]}};
<br>
<br>returns:
<br>_id.feature_____id.value_____count
<br> null____________null_________3
<br>
<br>The collection does not have nulls.  
<br>Can anyone assist??<br><br>Post Edited by rmarut at 05/16/2012 17:30]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=112&amp;forumid=107&amp;topicid=98109</guid>
</item>
<item>
<title><![CDATA[From jasperreports-2.0.1 to 4.5.1 + PDF/A1b]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98108</link>
<pubDate>Wed, 16 May 2012 16:42:13 +0000</pubDate>
<description><![CDATA[Hi to everybody.

I inherited a project with jasperreports version 2.0.1 which produces PDFs reports.

Now, PDFs should be produced with format PDF/A1b compliant.

1.

I downloaded jasperreports-4.5.1 and iText-2.1.7 but I can't manage to update this code.

    public String createPDF(String path, String pdfName) throws Exception{
        String pdfDir = path + "exportpdf";
        String inputFilePath = path + "exportinput_file";
            try {
                File filePath = new File(pdfDir);
                if(!filePath.exists())
                    filePath.mkdirs();
                // Parameters page 1 (page1.jasper):   
                HashMap mapParam = new HashMap();
               
                mapParam.put("page", String.valueOf(1));
                mapParam.put("pages", String.valueOf(2));
                mapParam.put("greeting1", "HELLO");
                JasperReport jr1 = (JasperReport)JRLoader.loadObjectFromFile(inputFilePath + "page1.jasper");
                JasperPrint jpPage1 = JasperFillManager.fillReport(jr1, mapParam);
                   
                // Parameters page 2 (page2.jasper):
                mapParam = new HashMap();
                mapParam.put("pages", String.valueOf(2));
                mapParam.put("page", String.valueOf(2));
                mapParam.put("greeting2", "BYE BYE");
                JasperReport jr2 = (JasperReport)JRLoader.loadObjectFromFile(inputFilePath + "page2.jasper");
                JasperPrint jpPage2 = JasperFillManager.fillReport(jr2, mapParam);
               
                jpPage1.addPage((JRPrintPage)jpPage2.getPages().get(0));

                JasperExportManager.exportReportToPdfFile(jpPage1, pdfDir + pdfName);

                return pdfDir + pdfName;
            } catch (Exception e) {
                throw new Exception("It's not possible to create the pdf", e);
            }
    }

Can somebody give me hints? Do I need JRBaseFiller and JRPdfExporter objects?

2.

Do I need to recompile .jrxml files with new iReport 5.4.1 to produce proper .jasper files or I can still use old .jasper files produced with old iReport 2.0.1 ?


Thanks in advance,
jt]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98108</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[Display Report in a NetBeans Platform application]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98104</link>
<pubDate>Wed, 16 May 2012 15:49:35 +0000</pubDate>
<description><![CDATA[<p>&nbsp;Hi,</p>
<p>I'm developing an application using the NetBeans Platform and I need to embed a report in a TopComponent.</p>
<p>Ideally, I would like to embed it in a TopComponent directly, but I have not problem in using a JPanel.</p>
<p>The problem is that I can display the report in a JFrame (no NetBeans-friendly), but I'm unable to show it neither of the components described before - TopComponent / JPanel.</p>
<p>I tried several ways, but I don't get any error and it's not displaying anything:</p>
<p>I'm attaching the (provisional) code.</p>
<p>Hope you can help me!</p>
<p>Carlos&nbsp;</p>
<p>&nbsp;</p>
<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 final class EditorConsultasTopComponent extends TopComponent {

[...]

 @Override

    public void componentOpened() {

        // DB connection

        EntityManager em = EntityManagerFactoryHelper.getEntityManager();

        con = ((EntityManagerImpl) em.getDelegate()).getServerSession().getAccessor().getConnection();

        HashMap<String, Object> parameters = new HashMap<String, Object>();

        parameters.put(JRParameter.REPORT_FILE_RESOLVER, 

                new SimpleFileResolver(new File(EditorConsultasTopComponent.class.getResource("resources").getPath())));

        parameters.put (JRParameter.REPORT_RESOURCE_BUNDLE, 

                NbBundle.getBundle(EditorConsultasTopComponent.class));

        // set a few report parameters

        parameters.put("customer_id", 122);

        parameters.put("customer_name", "Joe");

        try {

            String reportName = "reports/test_report.jrxml";

            JasperReport report = JasperCompileManager.compileReport(this.getClass().getResourceAsStream(reportName));

            JasperPrint jasperPrint = JasperFillManager.fillReport(report, parameters, con);

            JRViewer reportViewer = new JRViewer(jasperPrint);

            this.add( reportViewer  );

            this.repaint();

            this.requestVisible();

        } catch (Exception e) {

            e.printStackTrace();

        }

    }
[...]
}</td></tr></tbody></table>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98104</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[same iReport jrxml show different output in two server (urgent)]]></title>
<link>http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98099</link>
<pubDate>Wed, 16 May 2012 13:15:47 +0000</pubDate>
<description><![CDATA[<p>Hello,</p>
<p>We have a display problem of product name in pdf format. JRXML file is same. However, in one server It shows the full name and the other just cut the text. The remaining code should go to next line. The field setup as follow.</p>
<p>Expression Class: java.lang.String<br />
Blank When Null: Yes<br />
Stretch With Overflow: Yes<br />
Stretch Type: Relative to Band Height<br />
Position Type: Fix Relative to Top</p>
<p>iReport Version:3.1.4</p>
<p>java version "1.6.0_20"<br />
OpenJDK Runtime Environment (IcedTea6 1.9.10) (rhel-1.23.1.9.10.el5_7-x86_64)<br />
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)<br />
&nbsp;</p>
<p>Both server has same java running. I have attached the files. We are clueless now.</p>
<p>Please help urgently.</p>
<p>Best regards.</p>
<p>asif</p>
<p>&nbsp;</p>]]></description>
<guid isPermaLink="true" >http://jasperforge.org/plugins/espforum/view.php?group_id=83&amp;forumid=101&amp;topicid=98099</guid>
</item>
</channel>
</rss>
