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

Downloads

Everything 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. I've added the subreport resourcebundle to the subreport and the mainreport resourcebundle to the main report but ... How do you add a subreport resourcebundle to another (main) report? Kind regards, Erwin
  3. 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
  4. 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
  5. 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
  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. 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
  8. My best guess is you'll need a licence to download the pro version. If you have a contract with JasperSoft browse to http://support.jaspersoft.com/. Kind regards, 3rwin
  9. 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.
  10. Is it possbible to translate Input Controls in JasperServer? We have defined a Input control with a label 'Company', but we want our non english user to see the label in their own language.
  11. Try using the following properties for your connection: JDBC Driver: com.ibm.as400.access.AS400JDBCDriver JDBC URL: jdbc:as400://system 3rwin
  12. Try changing the isPrintRepeatedValues setting to "true" while using evaluationTime="Now".
  13. Don't know if you tried this: Open report, then open menu "edit", choose "report properties" click the "more" tab and set "When no data" to "No Pages" ...
  14. Try: Code: InputStream in getClass().getResourceAsStream("/reportes/prueba.jrxml"«»); JasperReport jasperReport = JasperCompileManager.compileReport(in);
  15. 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.
  16. If you want to show info on the last page of your report, try using the lastPageFooter band. 3rwin
  17. 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
  18. Try changing the Common/Mode to Opaque in the Modify Styles screen. 3rwin
  19. Teodor, I got it working by using the method you described. Thanks for the help on that. I don\'t know how hard it is to code, but wouldn\'t it be a "nice to have" if Jasper would have an isSplitAllowed on field level? If set to false this would move the field to the next page if it doesn\'t fit on the current page, except if the field is bigger then a page, which would lead to an infinite "move to next page". Erwin
  20. Teodor, I\'m having the same problem. I tried your suggestion, but it doesn\'t work when you have multiple fields in the band. For example: -- detail band -- Field1 Field2 Field3 Field4 -- detail band -- Now let\'s say that Field4 is defined "Stretch with overflow" and we want it to go to the next page if it doesn\'t fit on the first page. If we set the isSplitAllowed to "false" and our Field4 doesn\'t fit on page 1, every field in the detail band would be placed on the next page. But what we wanted to happen was that Field1, Field2 and Field3 where printed on page 1 and Field4 on page 2. It is possible to achieve the correct behavior when we put Field4 in a subreport and set the isSplitAllowed in that subreport to false, but having to do this for every field where we want this kind of behavior would, in my opinion, create to much overhead (subreports). Maybe there is another way to get this behavior but if there isn\'t it would be nice to have an option to tell a field that we don\'t want it to "break" when it reaches the end of the page, but instead be printed on the next page. Erwin
  21. Thank you very much. I added a comment where i tried to explain the problem in detail.
  22. 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.
  23. Ok, was wondering where to make a comment, thought i had to be a member. No problem i'll check back later then to see if i can make comments.
×
×
  • Create New...