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

Giulio Toffoli

Jaspersoft Staff
  • Posts

    619
  • Joined

  • Last visited

  • Days Won

    4

 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 Giulio Toffoli

  1. This is a JasperReports exporter specific issues, so it should be moved to the JasperReports bug tracker.
  2. Hi guys, this is how JAsperReports works from the version 4.0.1. This is actually a good news, it is no longer necessary set a class for an expression, since JasperReports is able to figure it out what it needs. On the other side, jrxmls may result incompatible if used with old version of JasperReports. In that case, remember to set the compatibility mode in the options dialog. Anyway, I always strongly suggest to upgrade JasperReports when possible. Giulio
  3. Do you have more details about problems you may had? The application has been tested on several devices, include 3.1 and 4.2 Giulio
  4. Group footers are printed at the end of their group, not at the end of the page. You should use the page footer or the column footer bands for that. For further info and requests for this particular topic, you should post directly to the JasperReports forum/bag tracker since iReport does not control the filling process (which is done by JasperReports). Thanks Giulio
  5. Sorry guys, I re-published the dmg. It should be correct now.
  6. September 16, 2011 The iReport Designer Team is pleased to announce the new iReport Designer v4.1.2. iReport Designer is available as standalone application and as NetBeans plugin for NetBeans IDE 6.5.x and later. This version includes several improvements and bug fixes. New features New features and changes: Full support for JasperReports Library v4.1.2 New Sort component to be used with the new JasperReports Library Web Framework Support for PDF/A Several bug fixes Download Download iReport Designer (standalone version) from SourceForge.net Download the iReport Designer plugin for NetBeans The plugin is available on the NetBeans plugin center and on SourceForge New features overview JasperReports Library v4.1.2 is a minor new version of the reporting library in terms of functionalities, and contains many bug fixes for errors found in the previous version. Some important bugs have been fixed for the benefit of iReport Designer v4.1.2. Complete changelog - Updated to JasperReports Library v4.1.2 - Support for Sort Component - Support for PDF/A
  7. What is correct is the approach. You can even use open source libraries like ZXing to generate the barcode image Giulio
  8. I think you should just use a single textfield with a better expression using the syntax: ( (condition) ? on_true : on_yes I.e.: ( ( $F{udt_sender}.matches("G58961") ) ? new SimpleDateFormat("ii:ss").format($F{myDate}) : "" ) This is actually an expression to print a string, so you may want to concatenate more strings like that: exp1 + "," +exp2 + "," + exp3 etc.... you can even use variables to make the calculation and decide when to put a comma or not... Giulio
  9. You set how to provide the data to the subreport (read: you set the data source to be passed to the subreport) in the subreport element, in the property Data Source Expression, which in your case will be something like: $F{hobbiesDs} Assuming your bean has a method called getHobbiesDs which returns a JRDataSource and that you registered this method as field in the main report dataset. Giulio
  10. You can force NetBeans to operate with a certain file encoding by changing the config file in: <ireport install>/etc/ireport.conf Find the line that starts with "default_options=" go to the end of it, and insert (before the quotation mark) this "-J-Dfile.encoding=ISO-8859-1" (without the quotes). Now iReport will force the use of this encoding. I did not test it. Giulio
  11. There are several ways to do it, depending by your skills. Given I strongly relay on java, I would use this solution: a) create parameter "DateRangeType" this is what comes from the Form. It is something (a string or an id) which identifies a type of range b) create a parameter "DateRangeTypeSql" which being defined AFTER parameter DateRangeType, it's default value expression is evaluated after the initialization of DateRangeType. In other words we can use the value specified for DateRangeType to initialize the parameter DateRangeTypeSql. Here is where we will use java, the default value exp of DateRangeTypeSql will be something like: MyDateRangeHelperClass.createSqlForDateRange( $P{DateRangeType} ) where MyDateRangeHelperClass is a class that you have to create and put in the classpath. This class provides the static method: static String createSqlForDateRange( String rangeType ) { ... } which implements the logic of producing an SQL chunk for your range. Finally modify the SQL like that: select * from .... where date ${DateRangeType} Please note that the value of DateRangeType generated using createSqlForDateRange can be something like: = <some date> between datefrom and dateto is null is not null is in (date1, date2, date3) etc.... depending by your implementation. The good point of this method is that you don't have to calculate date ranges in other place but your class. Giulio
  12. The solution proposed here is the best one: http://www.barcodelib.com/java_barcode/barcode_symbologies/barcode_ireport.html the fact that JasperReports does not provide a QR barcode, does not mean that you cannot do: a) Implement a JRRenderable (like in the above sample) to create a graphic object and use it with an Image Element b) Implement a custom component a plug it inside JR (cleaner but longer process) Giulio
  13. Display the PAGE_NUMBER variable and set the evaluation time of the textfield to Report. The variable PAGE_COUNT contains the number of records evaluated "up to now" in the current page. Giulio
  14. Out of the box there is not support for XQuery, only XPath is supported, but you can implement your own custom query executer.... Giulio
  15. Hi Exie, the barcode support of iR 3.0 has been deprecated, since JasperReports provides a new more advanced native component to render the barcodes (still based on Babecue, or optionally it is possible to use Barcode4J). Anyway you should have the ability to transform an old image object to print a barcode in a new barcode by rightclicking the object and selecting the proper menu item (something like "convert to Barcode component" or something like that). Giulio
  16. hm, I assume this may happen when using Groovy as expressions language (which is by the way what I recommend) Giulio
  17. All the proposed methods sounds good, I would even skip the need to use DynamicJasper, but just because I know well the JasperReports APIs. Whatever is your trick (dynamic change of the JasperDesign with JR or DynamicJasper or a special data source to fill a crosstab (which by default has a dynamic number of columns), the result can be exported in any format without problems. A more "recent" approach whould be to play with a table component, instead of placing dynamic elements in the detail band... even easier. Giulio
  18. It's a compatibility problem: you are using a newer version of iReport (at least newer than the one version of JasperReports provided by the server). Check what version of server do you use, and set inside iReport (Tools -> Options) the compatibility option according with that version. Giulio
  19. I noticed that too, but I was not sure if it was just a typo in the message, you would have get at least a compilation error. Giulio
  20. I see what you mean. The short answer is no, you cannot do much about it. The Word and ODF exporters of JasperReports are based on some kind of table-based abstract exporter which garantees the elements will be pixel perfectly positioned. For specific needs, even if not properly trivial, you would have to implement your custom exporter. Giulio
  21. What calculation type did you set for the variable? What values do you expect the variable to assume? Where are you printing the variable? Giulio
  22. First, given the number of questions on the topic, I have to absolutely find the time to write a good tutorial about using XML with iReport/Jaspersoft Studio and JasperReports. Anyway, let's say you have an xml of type: A +-- B +-- C +-- C +-- C +---B +-- C +-- C +-- C The main xpath query should be /A/B so you can use each node B as record for the master report. For tables, list or subreports we want to print the C nodes of the current B node, so the datasource expression will be: $P{REPORT_DATA_SOURCE}).subDataSource("/B/C") in the context of the node B, creates a data source with elements of type /B/C For your reference: http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/data/JRXmlDataSource.html Giulio
  23. bolsover, I think the problem is related to the paragraph implementation in JasperReports 4.0.2 (which has be designed to prevent the problem you are experiencing, more than to introduce it....) All is related to the PDF font you are using. You should try by using a font extension, instead to relay on the default PDF fonts which may be slightly different from the one used by the java graphics to make size calculations. Giulio
  24. Very odd thing. It may be a bug of SQLeonardo, the open source project we use as SQL designer, which is not "perfect"... Hard to say what could be the problem, do you see any stacktrace in View -> IDE Log that may help us to figure out the problem? Thanks Giulio
×
×
  • Create New...