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

ChristophLeser

Members
  • Posts

    17
  • 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 ChristophLeser

  1. I found no solution for this problem. I did some test with a kyocera fs3900dn printer, which you may find interesting: 1. When I export the jasperreports result to pdf and print this pdf with linux lpr, the amount of data sent to the printer is only half of what gets sent when I directly export to the printer. I have no idea how to interpret this. It seems that ghostscript generates postscript output that is more compact than the postscript generated by java.printing. 2. When I use Adobe Acroreader on windows to print the generated pdf, printing is much faster, although the output volume is higher than on linux. But the windows driver generates PCL-XL code, which prints faster than the postscript generated by CUPS ( the printing system on RHEL5). Maybe I can get hold of a cups driver that is able to generate PCL 6e ( or PCL XL ).
  2. I switched to jasperreports 3.7.3 and java 6 for my reporting on linux (RedHat EL5). I followed the recommedation in the recent ultimate guide and installed a font extension for the free 'liberation' font used in my reports. All works fine, the font gets embedded in the pdf, and the print output looks nice as you would expect from jasperreports. But printing is slow now. I suspect, that this is caused by the high output volume generated, i.e. 1.5 MB for a one page order confirmation. Probably because the font is not a 'device font', i.e. a font that is embedded in the printer. So every character will be represented by a set of lines and curves. My question to this forum: Is it at all possible to use printer 'device fonts' with jasperreports? If the printers ppd file indicates that the printer has -say- a TimesNewRoman font, and if I design my reports to use only TimesNewRoman, would in this case jasperreports/jre recognize this and send the code points for the characters instead of drawing them explicitely thus reducing the output volume considerably. And to enhance my understanding: this decission to use or not to use a device font is done by java printing code or is done by jasper reports? Thanks
  3. So you have subreport A and subreport B both in your main report. You can define 'return values' for subreport A, i.e. you can pass data from a variable defined in subreport A to a variable in the main report. You can then use this variable as parameter to call subreport b. You probably already have defined a variable in subreport A calculate the sum. Assign this as a 'return' value to a variable in the main report. Regards Post Edited by ChristophLeser at 12/16/2010 14:52
  4. Hi, Anup, I'm not sure that I understand your question correctly: Your main report actually has 4 Subreports in the detail section ( Subreport A , B, C and D ), right? Now you want one subreport ( say B ) to use data from another subreports ( say Subreport A ) query as input? If that is what you are asking for, that can be easily achieved: Just move Subreport B from the main reports detail band to the detail band of subreport A. Then you can ( in Subreport A ) pass any data that is available to a to subreport B. Regards Christoph
  5. Hi, I use JasperFillManager.fillReport to create a JasperPrint object, which I then export to various destinations. Now I would like to get some information from the filling process ( for example whether a specific supreport returned data or not ). A possible solution that comes to mind is to have the main report add a key to the parameter map that is supplied in the call to JasperFillManager.fillReport to return the required information. But I have no idea where I could put the code to achieve this. Scriptlets might be the way to go, but I found no 'after report' event ( or similar event ) that would be generated when the report is filled. What do the gurus suggest? Is there a recommended way to get information about the fill process ( for instance to access the final values of the report variables or else )? Thanks a lot. Christoph
  6. Malliboy states that the report runs ok on plain unix, the problem comming in when running with weblogics. Is a similar statement true in jinals case? Maybe it is just a problem with memory resources granted to the jasperreport when running insite weblogics/tomcat.
  7. Can you tell where the extra time is spent? Is it just startup of the JVM, is it compile/fill/export/print time? Is the problem only with the crosstab element?
  8. I'm still working with older versions of JR and now want to migrate to version 3.5. Have have bought the older versions of the ultimate guide. Before spending my precious dollars on a new one, I want to ask whether the new report covers the features changed and/or added to JR 3.5. :) Regards Christoph
  9. I have the same problem ( see my posting about FontSelector support in this forum. I have no solution for this for now. Here is what I think what our problem is: The builtin PDF fonts like Helvetica in your sample have all the characters we need ( i.e. all western and central european characters ) but they do not have a unicode encoding. There is a CP1252 encoding for western characters and CP1250 for central european characters. So you have to specify the matching encoding to get your characters printed. The itext package, which is used in jasperreports to provide PDF support, has a solution for this called FONTSelector. You create a FONTSelector and add all required encodings. Then you pass your text to this FontSelector and it will return a decorated text phrase with the required encoding specifications. This phrase is then added to the document and the output is ok. I tried this with a simple java program calling itext directly. I have no idea yet how I could do this in JasperReport or even iReport There is a alternative way to tackle the problem: Buy or otherwise get a font with UTF encoding. With this we should be able to print all european characters in a single string using the Identity-H encoding. But you have to embed your font if you want others to read your document (, if your font license allows embedding ). I will try this the next days and post my results here, if you are interested. Regards Christoph OK, I tried TrueType fonts with pdf exporter and it worked ok. Using iReport 3.1.3-nb: Include the path to your font directory ( for me it was c:windowsfonts ) in classpath ( Menu bar: tools->options->classpath tab ). After doing so, in the fontpath tab in the same option window this path shows up too and must by checked to be searched for fonts by the iReport. Now all TTF fonts show up in the pull down list of PDFFont property sheet. I selected arial.ttf. I also chose IDENTITY-H as PDFencoding . After doing so the PDF displays characters like the czech 'R caron' ( Unicode u0158 ) or the spanish ' n tilde' ( Unicode u00f1 ) in a single field. The exporter automatically embedded a subset of the arial TrueType within the pdf document. This solves the problem if you have a suitable ttf fonts available and accept these fonts to be embedded within your documents. Personally I would prefer the FontSelector method mentioned above, but I still have no idea how to do this with iReport/JasperReports. Post Edited by ChristophLeser at 07/25/2009 17:52
  10. how long does it take the report to complete, and what responsetime toyou expect or require? I did a quick test with a 20.000 rows / 4 columns report from an Oracle database, it took approximately 10 seconds running on aLenovo Think Pad R61. Would that be acceptible? I added a barcode column to the test report. Now I see significant cpu consumption too ( 50% on my Intel Core Duo T8100 2.1Ghz with 2GB RAM while the report is filled ). But it seems to scale linearly with the number of rows: 100 rows 0.4 secs 1000 rows 3.5 secs 5000 rows 17.2 secs 10000 rows 35.0 secs 20000 rows 70.0 secs So I think there is no special 'large report' cpu problem in this case. One might argue about the 0.003 secs per line. Post Edited by ChristophLeser at 07/24/2009 09:05 Post Edited by ChristophLeser at 07/24/2009 10:19
  11. You have probably already checked that it is not a problem with you JBOSS or the JDBC connection? Do you have many database request in the report or just a single select with a lot of output? In an older version of the 'Ultimate Guide to JasperReports' by Teodor Danciu I read that jasperreports by default creates the entire report in memory before printing it out. The books describes a method called 'report virtualization' that there is a way to proceed page by page, in a sort of streaming mode. I have not yet used this feature so I cannot tell any details. And my knowledge may be out of date. There should be a working demo in the examples directory Regards Post Edited by ChristophLeser at 07/23/2009 17:35 Post Edited by ChristophLeser at 07/23/2009 17:44
  12. I'm looking for a way to print a field containing Central European as well as Western European characters to pdf. The data for this field come from an Oracle Database and are UTF encoded and contain a mix of Central and Western European characters. These strings are fine when printed, but do not show up correctly in the exported pdf: When I specify CP1252 as PDFencoding, some Central European characters do not print ( just missing ); when I specify CP1250 encode, some Western characters are missing. As far as I understand, this is the expected behaviour. iText provides a FontSelector, which can be created with more than one encoding, and converts text strings to 'phrases' which can then be added to the pdf document. For each character an encoding is selected that contains it and the phrase is constructed accordingly. I tried it with a simple test program calling iText directly and it worked fine. Is there a way to create and use FontSelectors in JasperReport's PDF Exporter? Perhaps by specifing a list of encodings in the PDFEncoding parameter? Regards Christoph
  13. or even simpler: Specify PDFEncoding as list of encodings and have jasperreports create the FontSelect when it sees that more than one encoding is specified Christoph Post Edited by ChristophLeser at 07/20/2009 14:38
  14. I wonder how this issue was resolved. Is there support for iText FontSelector in JasperReports? I would be glad to here about this. The reason why I'm asking is that I'm looking for a way to print Central European as well as Western European characters in a single pdf. The data comes from an Oracle Database and is UTF encoded and contain a mix of Contral and Western European characters. These strings are fine when printed, but do not show up correctly in the exported pdf: When I specify CP1252 encoding, some Central European characters do not print ( just missing ), when I specify CP1250 encode, some Western characters are missing. As far as I understand, this is the expected behaviour. With iText you would create a FontSelector with these two encodings and let it process the output string before adding it to the document. A possible solution would be if I could specify a FontSelector instead of the PDFEncoding property. Regards Christoph
  15. Sorry, I can offer no help. But I'm very interested in printing to thermal printers with jasperreports. What platform are you on, windows or unix? And what is the brand of your printer, and what driver do you use? I could do some experiments on linux with either zebra or markpoint printers. Maybe you could post the report you are tring to print?
  16. Sorry, I can offer no help. But I'm very interested in printing to thermal printers with jasperreports. What platform are you on, windows or unix? And what is the brand of your printer, and what driver do you use? I could do some experiments on linux with either zebra or markpoint printers. Maybe you could post the report you are tring to print?
  17. Sorry, I can offer no help. But I'm very interested in printing to thermal printers with jasperreports. What platform are you on, windows or unix? And what is the brand of your printer, and what driver do you use? I could do some experiments on linux with either zebra or markpoint printers. Maybe you could post the report you are tring to print?
×
×
  • Create New...