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

kalinr

Members
  • Posts

    6
  • Joined

  • Last visited

kalinr's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Why do we need to put the jasperPrint object in the ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE? We already set it in the exporter. This is duplication,I think. Can the exporter itself set the session attribute, using the already known jasperPrint object? This will simplify a lot of things.
  2. Hi, Unfortunately I have the same troubles as you, using the iReport NetBeans. This is possible and very easy for iReport 3.0.x (the old one, before NB). I'm asking similar question here: http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=76331 But no answer so far... I think you can try overriding the validate() method in the Installer.class in com-jaspersoft-ireport.jar. This method is called before the module is started and you can place there the code, needed to be invoked before the iReport is started. But in my case this is not enough, since I have service loaders and they just don't find anything anymore. If the old iReport 3.0.x is suitable for you, you can start it very easy from your app with this code: it.businesslogic.ireport.gui.MainFrame.main(args); Not that this doesn't work with NetBeans, because NetBeans wants to load the whole world before starting the real application... I think it would be nice if the next iReport provides a way to extend it in a way that: - is possible to add jars in the ext folder and they are visible automatically for the iReport - is possible to add a startup code, without hacking the jar and replacing the Installer.class - explain which service loaders are used in the iReport and how to make custom services visible to them
  3. Hi, I have troubles previewing my reports in iReport 3.7.1 using the following setup: All reports use a custom JRDataSourceProvider, which returns a specific JRRewindableDataSource implementation, depending on the report. Connecting to it (testing the connection from the GUI) works fine. All implementations are in an external implementations.jar, which I add to the classpath (from the menu). They were loaded in iReport 3.0.x and iReport 3.5.x using the current thread class loader, but this does not work anymore. If I have a subreport, it has an expression for its datasource, which again looks for a datasource in implementations.jar, using the same class loader. This was also working before. Some more details: All these datasources use injected classes internally. To inject the classes, I create a validate() method in the installer.class in the ireport-designer module (com-jaspersoft-ireport.jar) which injects the required classes. This is still working fine, I think. More details on how I load the datasource implementations here: http://stackoverflow.com/questions/3142515/how-to-make-the-java-serviceloader-work-in-a-netbeans-6-9-module-application What should I change in my setup, so the new iReport can find my data sources? I found in the iReport sources a class, called ReportClassLoader, which does some magic which some hidden class paths. Is this something related to my problem? Thanks, Kalin
  4. The answer of my question #58705is posted here: http://stackoverflow.com/questions/852320/how-to-run-ireport-nb-3-x-x-from-whithin-another-java-application Post Edited by kalinr at 07/03/2009 11:57
  5. Hi, My name is Kalin Rashev and I'm using JasperReports and iReport since 2008. I really like the products and they work really great! It is really easy and a lot of fun creating reports with Jasper products! However, my reports are using custom JRDataSource implementation, which requires some java code to be executed before the iReport is started. I have integrated this perfectly with the classic iReport 3.0. I made a starter application which initializes my data source provider and then simply invokes it.businesslogic.ireport.gui.MainFrame.main(args); to start iReport. The problem is that the new iReport 3.5.x is a NB plugin and I can not find a way to start the iReport from my application. There is simply no main method anymore, because it is no longer standalone application, but NB plugin! Starting iReport from another application is critical for me. As I read the posts in this topic, I made a conclusion that the classic iReport will not be upgraded anymore. So it is a matter of time to become incompatible with the new JasperReports features. I believe the new iReport will soon have more cool features than the classic one and I can see it is being actively updated. I really want to switch to it, but that is not possible until I find a way to start iReport from another applciation. Can somebody please tell me how to start the iReport NB from another Java application? Thanks in advance, Kalin Rashev
×
×
  • Create New...