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

cjs1976

Members
  • Posts

    22
  • Joined

  • Last visited

cjs1976's Achievements

Contributor

Contributor (5/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Yes, iReport works perfect. I use Windows 7 64-Bit. I built a JAR with the free fonts of RedHat (see https://fedorahosted.org/liberation-fonts), and used them to create my reports. I placed the JAR in the LIBS folder of my application, and added it to the classpath. To use them, I had to add the JAR also to the iReport classpath. Now it works! Is this the right way?
  2. Hi! I have the following problem: If I design my reports with iReport 4.5.1, and if I test them, and if I save the test as PDF, everything works fine. If I use the report directly from my Java application over JasperReports, the view is ok, but if I save it as PDF, all formatting (bold and so on) is lost. I found some hints, that this problem comes from the fonts, because they are not available in the classpath. I found also a hint, that the use of TTF files over the classpath is deprecated. It should be better to install the fonts in iReport, and than create one or more JAR files over the iReport font exporter. Okay. I installed the fonts, and there where no errors. I can see (and modify) the fonts in the options dialog. I created single JAR files of every font. This also worked fine. BUT: If I try to select this fonts for a text field under iReport, the font isn't in the list!!! If I add one of my JARs (from iReport Font exporter) to the iReport classpath, I can choose it under 'Font name'. And if I add the JAR to the classpath of my Java application, also my PDF file is okay. IS THIS THE SYSTEM WHICH SHOULD I USE??? An other problem is, that some fonts kill iReport (Helvetica, MS Reference Sans Serif...). This means, after adding them to the iReport classpath, I can't open any reports. Everything is empty, only a grey background. Are there any hints/tips you can give me??? Thanks, Christian.
  3. Hi! I have html-code in a field, so I tried to use a Text Field and set the Markup to html. This is okay, but the <p> tag doesn't work correctly. Every line has the same gap, but normaly a <p> (= Enter) has a bigger gap than an automatic line brak or a <br /> (= Shtift+Enter). If I use a Html-Element, everything is displayed correct, but I can't change anything like Font, Fontsize... Is there any cheat for this? Thanks, Christian. Post Edited by cjschrattenthaler at 2011-12-01 11:28
  4. Hi Carl! Many thanks for your information. You helped me very much. Greetings, Christian.
  5. hi cbarlow3! i think the table is the element/component i searched for. i tested some reports, and it worked fine. now i have only to resolve some optical problems. what is your experience: is it better to use lists/tables or subreports? thanks, christian.
  6. Hi! Is it possible to set a header for a list, so if the list is over more pages, on each page first comes the header again? Thanks, Christian.
  7. Hi! I am trying to change the print engine from an old software project to JasperReports. Some data comes in a wrong characterset over the jdbcodbc-interface. I can't use an other driver, because this is a verry special database. I helped me with changing the fields to a new String($F{LB_TEXT}.getBytes(), "MacRoman"). This worked verry well under iReport and Eclipse. And also, if I test my code over a btach-file under Windows XP. But if I call the programm inside the old application (same place, and same way as in the batch-file), I get the following error. *** ERROR! Message: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : new String($F{LB_TEXT}.getBytes(), "MacRoman") Level: SEVERE Stack Trace: Error evaluating expression : Source text : new String($F{LB_TEXT}.getBytes(), "MacRoman") net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:197) net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537) net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:505) net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:826) net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:368) net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:353) net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275) net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:591) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:524) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:253) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:879) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:782) net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234) biz.soag.jr4ao.helpers.CreateReport.fillReport(CreateReport.java:112) biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:67) biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:1) javax.swing.SwingWorker$1.call(Unknown Source) java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) java.util.concurrent.FutureTask.run(Unknown Source) javax.swing.SwingWorker.run(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source) MacRoman java.lang.StringCoding.decode(Unknown Source) java.lang.String.<init>(Unknown Source) java.lang.String.<init>(Unknown Source) LB45Ausdruck46d_lb_pos_1217230426744_870805.evaluate(LB45Ausdruck46d_lb_pos_1217230426744_870805:389) net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:186) net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537) net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:505) net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:826) net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:368) net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:353) net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275) net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:591) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:524) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:253) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:879) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:782) net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234) biz.soag.jr4ao.helpers.CreateReport.fillReport(CreateReport.java:112) biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:67) biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:1) javax.swing.SwingWorker$1.call(Unknown Source) java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) java.util.concurrent.FutureTask.run(Unknown Source) javax.swing.SwingWorker.run(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source) *** The problem comes from the conversation. Because if I don't make the conversation, or leafe the filed away, there is no error. But if I don't make the conversation, some german characters (Umlauts) are not correct. Has anybody an idea? Thanks, Christian.
  8. Hi! I have a report with an subreport. I did this over iReport, and it worked fine. But in my application I use jrxml files, so that the user can make changes, and create new reports via XML. After the user chooses a report, I compile it directyl from my application. That worked fine, until I had reports with subreports. How can I automatically compile the jrxml files of the subreports at the same time I compile the report jrxml file? Or must I change my whole system to use compiled jasper files instead of jrxml files? Thanks, Christian.
  9. Hi! Is it possible to set the value of a variable if a field is processed? I need this to detect, if a filed was printed or not, so that I can make a condition at a later time. Thanks, Christian.
  10. Hi! I need a solution for an expression in my pageHeader and pageFooter, so that I can print a String only, if a special groupHeader is printed, and not if the details are printed. My first group prints only some text (information), and my second group and my details prints other data. Only when the header of the first groups is printed (more than one page), there should be a special info-text in the pageHeader and the pageFooter. But if all other data is printed, there should not be an info-text in the pageHeader and the pageFooter. I found a working solution for the footer: ($V{LBPO_LGCODE_COUNT}.intValue() == 0 ? "" : "-LG" + $F{LBPO_LGCODE}), but it doesn't work for the header, because only after processing the group, the variable will be counted. I searched over google, and in the books JasperReports and iReport I bought, but there where only solutions after processing a group. Please help! Every idea is welcome! Thanks, Christian. Post edited by: cjschrattenthaler, at: 2008/07/09 15:18
  11. Hi! Is it possible to tell the report, that the PageFooter should only be shown on pages from with data from band xy? Greetings, Christian.
  12. Hi! I can define, that my Report has columns. But what, if I only want columns in one section/band of my report? And is it possible the define a field, which uses the complete width of a page, even if it is on a page with columns? Greetings, Christian.
  13. Hi! These sections are standard for a JRXML-File: <background> <title> <pageHeader> <columnHeader> <groupHeader> <detail> <groupFooter> <columnFooter> <pageFooter> <lastPageFooter> <summary> <noData> Is it possible to create a user defines section, or will this destroy my report? Greetings, Christian.
  14. Hi! When I use stretching on a field, the field always expands vertically. Is there a way to do a horizontally stretching, to arrange some fields horizontally, if I can't use the variables in one field? Thanks, Christian.
  15. Hi! I am now using the following solution: 1. I have a folder called fonts in the folder of my application. 2. All used fonts must be in this folder. 3. I ship my application as JAR archive, so I have to extend my Class-Path in the Manifest.mf file with the String './fonts/' (without the quotes). This system is ok for me! Annotation: I use eclipse for creating my Java application, so I had to add the fonts folder as additional source folder. Greetings, Christian.
×
×
  • Create New...