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

3rwin

Members
  • Posts

    35
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by 3rwin

  1. Lucian,

    First of all thanks for the feedback ...

    Am I looking at this the wrong way then. I would like to make a subreport with for example a header logo and a date, and use it in many other reports. So if someone askes me to put for example a time in the header I would only have to change the header subreport and all my reports would work.

    But I would like to have a Internationalized label "date" before the date and make it so that I only have to translate the label in one place, not in every report that uses my subreport.

    Kind regards,

    Erwin

  2. 1-3) In a Java project I can get this working, but in JasperServer i don't seem to find a solution.

    4) I'm trying to re-use a subreport and it's translated labels in several main reports, so I don't want to have to enter the labels of the subreport in every main report.

     

    So no solution for the moment ... anyone?

     

    Kind regards,

    Erwin

  3. 1) if i use ResourceBundle for my main report and ResourceTable for my subreport i get the following error "java.util.MissingResourceException: Can't find bundle for base name ResourceTable, locale en_US". I guess the JasperServer expects to find the ResourceTable of the subreport in the same folder as the main report.

    2) I could put the labels of the subreport in the Resourcebundle of the main report, but that would be kinda stupid because everytime I would use the subreport in some other report i would have to write the labels over and over again.

    3) i don't know exactly what you mean, when i look at the resourcebundle= statement there is only ResourceBundle (without .properties), what should the path be, keep in mind that i'm working on a JasperServer, should I start at the Root? I've tried a few possibilities but none seem to work.

    Thanks for trying to help.

    Kind regards,

    Erwin

  4. I'm not exactly sure what you mean but ... In the subreport I bind the ResourceBundle like this:

    <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="report name" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="595" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" resourceBundle="ResourceBundle">

    So no path ...

     

    kind regards,

    Erwin

  5. Hi,

    I have uploaded a main report and a sub report with their resourcebundles to our JasperServer:

    root

    mainreports

    main.jrxml

    resourcebundle.properties

    subreports

    sub.jrxml

    resourcebundle.properties

    I've created a $R{title} textfield in my sub.jrxml and defined it in the resourcebundle.properties (in the subreports folder), when I run the subreport on the JasperServer it translated my $R{title}, but when I add the subreport to the main and run the main, the $R{title} doesn't translate and gives me a "null" value for the field.

    Does anyone have an idea on how to fix this?

     

    kind regards,

    Erwin

  6. Hi,

    I have uploaded a main report and a sub report with their resourcebundles to our JasperServer:

    root

    mainreports

    main.jrxml

    resourcebundle.properties

    subreports

    sub.jrxml

    resourcebundle.properties

    I've created a $R{title} textfield in my sub.jrxml and defined it in the resourcebundle.properties (in the subreports folder), when I run the subreport on the JasperServer it translated my $R{title}, but when I add the subreport to the main and run the main, the $R{title} doesn't translate and gives me a "null" value for the field.

    Does anyone have an idea on how to fix this?

     

    kind regards,

    Erwin

     

     

     

     

  7. Is it possible to create dependant Input Controls?

    For example, we have 2 input controls, company and material, in the second combobox we only want to show the material for the company selected in the first input control.

  8. Try:

    Code:

    InputStream in getClass().getResourceAsStream("/reportes/prueba.jrxml"«»);
    JasperReport jasperReport = JasperCompileManager.compileReport(in);
  9. This is the xml source of an empty report generated by iReport:

     

    Code:

    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Created with iReport - A designer for JasperReports -->
    <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
    <jasperReport
    name="simple"
    columnCount="1"
    printOrder="Vertical"
    orientation="Portrait"
    pageWidth="595"
    pageHeight="842"
    columnWidth="535"
    columnSpacing="0"
    leftMargin="30"
    rightMargin="30"
    topMargin="20"
    bottomMargin="20"
    whenNoDataType="NoPages"
    isTitleNewPage="false"
    isSummaryNewPage="false">
    <property name="ireport.scriptlethandling" value="2" />
    <property name="ireport.encoding" value="UTF-8" />
    <import value="java.util.*" />
    <import value="net.sf.jasperreports.engine.*" />
    <import value="net.sf.jasperreports.engine.data.*" />


    <background>
    <band height="0" isSplitAllowed="true" >
    </band>
    </background>
    <title>
    <band height="50" isSplitAllowed="true" >
    </band>
    </title>
    <pageHeader>
    <band height="50" isSplitAllowed="true" >
    </band>
    </pageHeader>
    <columnHeader>
    <band height="30" isSplitAllowed="true" >
    </band>
    </columnHeader>
    <detail>
    <band height="100" isSplitAllowed="true" >
    </band>
    </detail>
    <columnFooter>
    <band height="30" isSplitAllowed="true" >
    </band>
    </columnFooter>
    <pageFooter>
    <band height="50" isSplitAllowed="true" >
    </band>
    </pageFooter>
    <lastPageFooter>
    <band height="50" isSplitAllowed="true" >
    </band>
    </lastPageFooter>
    <summary>
    <band height="50" isSplitAllowed="true" >
    </band>
    </summary>
    </jasperReport>

     

    Hope this helps.

     

    3rwin.

  10. Parameters are passed as an object.

     

    java.lang.String

    java.lang.Object

    java.lang.Boolean

    java.lang.Byte

    java.util.Date

    java.sql.Timestamp

    java.sql.Time

    java.lang.Double

    java.lang.Float

    java.lang.Integer

    java.io.InputStream

    java.lang.Long

    java.lang.Short

    java.math.BigDecimal

     

    so ... for example

    Code:

    hmap.put( "ID", new Integer(13) );

     

    3rwin

    Post edited by: 3rwin, at: 2007/04/03 08:32

  11. lucianc wrote:

    However, it seems that currently only the tracker author and the project members are allowed to do that. We'll have to do something about this.

     

    Is this something that's going to be fixed in the next couple of days or is it somewhat harder to fix then that? I would like to comment on the feature request.

×
×
  • Create New...