Jump to content
JasperReports Library 7.0 is now available ×

alban5650

Members
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

alban5650 last won the day on July 9

alban5650 had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

alban5650's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

2

Reputation

  1. Bump. In case this was missed by the developer / support team. Does anybody has information on how to automate the conversion of jrxml templates from one version to another? In our case from the latest 6.x to 7.x format. Thanks in advance
  2. Hi, Currently it seems that to convert jrxml template files from 6.x to 7.x, you need to open those files in the latest JasperSoft Studio. We currently store our report templates in database blobs and it would be cumbersome to have to download all of those before opening them in Jaspersoft Studio and storing them back into our database. Unfortunately, the Jaspersoft Studio source code is not available so I'm not sure exactly how the compatibility option to convert between different version is made. Is there a way we can automate this programmatically? Thanks
  3. This issue is resolved. I had to create a new custom JRDataSource based on the default JRTableModelDataSource. I added a method to return the TableModel from the DataSource: public TableModel getTableModel() { return this.tableModel; } I then changed the code to use my new datasource: jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap<String, Object>(), new CustomJRTableModelDataSource(tableModel)); And configured my Table datasource the following way: new net.sf.jasperreports.engine.data.CustomJRTableModelDataSource( ((net.sf.jasperreports.engine.data.CustomJRTableModelDataSource)$P{REPORT_DATA_SOURCE}).getTableModel()) If anybody knows of a better way to reset the datasource without having to use a custom JRDataSource, please let me know! I tried to move the table in the 'title' band instead of 'details' band but that still seems to cause the dataset to be started from 2nd record :-(
  4. Hi, I'm trying to create a report using java that fills the report data using a JRTableModelDataSource(TableModel). The table is populating correctly with the data from the TableModel, however the 1st record is not displayed in the table? If I use the same TableModel with the data outside the Table, then all data is displayed correctly. I'm attaching the code used as well as both reports (with & without table) if anybody is interested in looking into this! Thanks. Post Edited by alban5650 at 10/25/2011 13:41
×
×
  • Create New...