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

cjs1976

Members
  • Posts

    22
  • 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

Everything posted by cjs1976

  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.
  16. Hi! I found out the following: 1. All ttf files in the font folder of iReport works fine. 2. I can't use c:/windows/fonts, because this folder generates an error on startup, and only a fistful of fonts are available. Tried under Windows XP and Windows Vista. 3. Over the options menu, I can add a folder with additional fonts to the iReport internal classpath. This folder must also be activated as additional font folder. 4. If using the system with classpath and fontfolder, also the startup.bat file must be expanded with this folder, else the fonts can not be found when creating a pdf file over a JRViewer. My conclusion: I use the font folder of iReport, and I also use a font folder in my applications. Greetings, Christian.
  17. Hi! I created a report for Avery-Zweckform labels (DIN A4 format). There are 21 labels on one sheet. Ordinarily after a print, there are some unused labels. This sheet with the unused labels should used the next time when printing labels, so I need a solution to begin the new label printing on label ???. I found a posting in this forum, discussing the same problem: http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=8&id=20656#20656. But: I must use an ODBC connection, and I can only read from the database. So I can't create an empty table. Has anybody a working solution for my problem? Thanks, Christian.
  18. Hi! I set my font directory (C:WINDOWSFonts) in the classpath of iReport, then I chosed it as font directory. After a restart of iReport, I can chose the fonts in this directory as fonts for the creation of a pdf file. No problem. After that, I print my report over iReport on the JRViewer. No problem. But now, if I want to save the generated report over JRViewer as pdf file, I get an exception, that the needed TTF file could not be found. Any ideas? Thanks, Christian.
  19. Hi! I must create my reports with iReport. The reports will only be printed on a real printer, or saved as pdf file. For the creation of a pdf file, I have to define an alternate font file. For example ARIAL.TTF. Now I can create a report and show it in JRViewer. If I print this report an a real printer, there is no problem, but if I want to save the report as pdf file, I get an exception, that the ARIAL.TTF file could not be found. I am not allowed to use an other tool as iReport for creating the jrxml files. I am also not allowed to modify the files manually. I can't use FONT_MAP within my Java classes, because I don't know, what fonts the users of the software will use for their reports. Is it possible to set a directory (e.g. C:WINDOWSFonts for Microsoft Windows platforms) outside of my application? Because I don't know, where the font files of the users are. I tried to do this over a jasperreports.properties file, like the demo, but this didn't work. I must use the JRViewer, I can't use the PDF-Export function directly. Any ideas? Thanks, Christian.
  20. Hi! I found the problem myself. The font for the pdf file didn't support bold and/or italic. I dind't find a way to set isPdfSimulatedBold and/or isPdfSimulatedItalic, over iReport, and I am not allowed to use an other tool for creating the reports, or modify the reports manually. Greetings, Christian.
  21. Hi! I used iReport 2.05 to create my JRXML files. I tried them over my own application, and over iReport. I allways use the JRViewer, and there is everything ok. I can print to different printers from the JRViewer, and the reports are correct. But if I try to save the report as PDF file, the formatting (bold, italic, ...) of my text is lost. Please help! Thanks & greetings, Christian.
  22. Hi! I Use iReport 2.0.5 on a german (Austria) Windows XP an Windows Vista computer. If I start the iReport.bat, I get the following errors: *** Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) {query.language.mdx.enabled=true, query.language.mdx=MDX, query.language.xPath.enabled=true, query.language.xPath=XPath, irplugin.version=2.1, ireport.manage.datasources.enabled=true, query.language.sql=SQL, query.language.hql.enabled=true, irplugin.title=JS plugin {0}, irplugin.update.url=http://ireport.sf.net/lastversionji.php, query.language.sql.enabled=true, query.language.ejbql.enabled=true, irplugin.update.checking.enabled=true, irplugin.server.required.version=1.2.0, query.language.hql=Hibernate Query Language (HQL), irplugin.server.url=http://localhost:8080/jasperserver/services/repository, query.language.ejbql=EJBQL} Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) *** How can I correct this problems? Thanks & greetings, Christian.
×
×
  • Create New...