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

israel_2

Members
  • Posts

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

  1. I have a subreport .jrxml file sitting in the same directory as my master. I have my subreport expression set to net.sf.jasperreports.engine.JasperCompileManager.compileReport("subreport1.jrxml")[/code]but that gives an "java.io.FileNotFoundException" error. Same if I try "./subreport1.jrxml". the only thing that seems to work is to provide the full path, which of course is not an option (since it is not portable). In searching for a solution, I found a lot of references to the parameter $P{SUBREPORT_DIR}, but I don't have that parameter available. How can I specify that the subreport is in the same directory as the master report?
  2. Anyone have any ideas on this? I now have a report design that I can't get to open at all because I just get the "Linked resources are not supported by this application" error. To add insult to injury, this is an older report that I originally created with iReport (which has none of the problems of Jaspersoft Studio, BTW), and I KNOW I didn't have any sub-reports in in. A fix is despreately needed. EDIT: I realized there is a simple solution to ALL these problems: Go back to using iReport Designer rather than Jaspersoft Studio. It may not have been updated in a while, but at least it work properly. Quite annoying that the "offical" statement is that iReport designer is being replaced with a product that doesn't function as well.
  3. So it is now 6 years later - 9 since the answer that they are "thinking" of creating a more "relaxed" HTML exporter. As far as I can see, this is still not the case. Did you guys just become tired of thinking about it and forget about it? Or might this still be in the works? What works well for printing often does not work well for HTML display. I find that the HTML display is oftwen way to small, while the printed copy is easily readable. It would be nice to be able to "scale up" or something to use the more relaxed format of HTML when displaying in a browser, while still being able to produce nice PDF's for printing.
  4. Is there any way to get Jaspersoft Stuio to let me save my reports where I want to? Whenever I create a new report and choose "save", the only option I see is some hidden "MyReports" directory. Not only does this mean that there is no way to access the reports once saved (since there is no way to tell where they are), it also means that they are outside of the project structure of whatever project I am working on, and as such can not be included in my source controll. To make matters worse, when I choose "open" I DO get a standard file browser - which means there is no way for me to open a report again once I have closed it. The only workaround that I have found is to export the report once I have created it. But even this has a problem - if I export a report that has a sub-report, and then try to open it again, I just get an error about "Linked resources are not supported by this application" Huh? I was just editing that report in this application and now you tell me you can't open the editor because it is not supported? How can I fix these issues, and have my reports saved in a sane location?
  5. I have a report I designed in Jaspersoft Studio. It uses a "Database JDBC Connection" Data Adaptor, which I have configured and tested in Jaspersoft Studio. Now I want to deploy this report in such a way that I can use the Jasperreports java library to generate reports from my in-house app. But here I get stuck. The data adaptor definition is not part of the .jrxml file I created in jaspersoft studio, and while I can export the data adaptor (as an XML file), I can't seem to figure out how to make use of it in the library. Can anyone point me to the relevant documentation or explain how to use a Data Adaptor when generating a report using the Library? Thanks. EDIT: It has been stated that all I have to do is "specify jdbc Connection inf JasperFillManager.fillReport method", but that doesn't really help. The fillReport method takes two parameters: the compiled report, and a map of parameters. Perhaps this jdbc connection stuff is supposed to go into the parameters? That would make sense, but leaves the question: what exactly do I need to put into the parameters map? I would think I would need keys for things like the connection string, username, and password, but while I know the values, what are the keys? And what is the key/value pair I need to specify to use the jdbc connection in the first place? I appologize if I am being dense here, but I'm not finding anything in the documentation so far that even hints at this. EDIT 2: Ok, I think I figured out this part after reverse enginering several examples. What needed to happen was that first I had to create a connection object. This involved importing java.sql.Connection and java.sql.DriverManager. Then I call Class.forName() on the driver string (although I don't know what that actually does, since it is never used), and create a connection object by calling DriverManager.getConnection() with the connection string, username, and password as parameters. This connection object is then passed as a third parameter to the fillReport() method. So noticably more complex than "specify jdbc Connection inf JasperFillManager.fillReport method" :-)
×
×
  • Create New...