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

ctkrm

Members
  • Posts

    10
  • 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 ctkrm

  1. I'm not sure there's a variable that does what you're asking, but it's easy enough to implement yourself. Make a boolean parameter, we'll call it isServer. In iReport, set its default value expression to "new Boolean(false)" and uncheck "use as a prompt" Then use the "$P{isServer}.booleanValue() ? repo-location : url-location". On the server, depending on how you run the report, add the isServer parameter to the parameter map before running the report ie map.add("isServer", new Boolean(true)) . Post Edited by ctkrm at 11/23/2009 20:27
  2. Are these charts static or generated during report generation? If static, have 3 differently colored charts in the exact same spot, one for each color. Then in their "Print when expression..." property, implement the logic so that for each detail or depending on a variable, only one chart will print. This was just a quick thought. You really need to include more information about how you're making them (or better yet the report itself) for more detailed help.
  3. Assuming you have the jasper reports project downloaded, copy the poi-3.2-FINAL-#######.jar to your classpath. That's the jar that contains the class you need. You may also need the jxl.jar on your app classpath as well.
  4. In the master report properties, what happens when you set the 'Ignore Pagination' checkbox? Or, in the sub reports, instead of using one big detail section you can break up the report into a small detail section with several small groups. Then when the report is filling, it'll put as many of the groups as possible before it breaks to the next page. I'm sorry if I'm unclear, if you need a more detailed explanation I'll provide one.
  5. That exception is thrown because of a parse error for the xml file. Check to make sure your file is named correctly. Should it be report4.jrxml instead of report4.xml ? Also, if you're developing on Windows your file seperators are incorrect, they should be different, look in the code section for an example. Code:"D:\AMERIPRISE_REPORTS\report4.jrxml"FileInputStream inp = new FileInputStream("D:/AMERIPRISE_REPORTS/report4.xml") ; Post Edited by ctkrm at 11/05/2009 22:37
  6. I really don't see that approach as being feasible. Like you said, for the client to generate the report they need to have either the .jasper or .jrxml file and the necessary libraries on the client machine. Getting those libraries on the client, as well as having disk access from the java web start sandbox (which I believe is not allowed) is going to be big problems. EDIT: After a bit of thinking, you can probably send over the jasper libraries like a normal part of your app (which may increase load times a bit?). As for the report, compile the template (.jrxml) into the report file (.jasper) then put the .jasper file into a jar with your other static resources. When it comes to use them, get the report out of the jar by using getClass().getResources(). Sorry for my opposite replies but it has been a long day and I am ready to go home for a long weekend. Good luck with this though I'm curious to see if you end up implementing this. Post Edited by ctkrm at 11/05/2009 22:23
  7. Thanks for the help giulio. Your suggestion worked a treat, launching from the command prompt with: C:>iReport-nb-3.6.1binireport_w.exe --jdkhome C:SunSDKjdk You were also correct about the registry keys, they are missing on my system. They were most likely removed when I was tidying up my java installations (I had 3 at one point on this workstation, it's a long story, but I consolidated to just the one shown above). The only key in the SOFTWARE\JavaSoft listing is one called: InstallerVersion Type REG_SZ Data: 1.6.0_15-b71. There are no paths listed under it except for one empty one called 'Prefs' Thanks again for the assistance, I've adjusted my shortcuts to include the --jdkhome option.
  8. Hi there. So, I decided to switch from 3.6.0 -> 3.6.1. I uninstalled, the old version, and reinstalled the new version. That's the only thing I did, and all older versions of iReport have been running fine. However, when I go to run 3.6.1 i get the error: JDK 5.0 or newer cannot be found on your machine . Is there a config I can modify (and what entry do I need)? Some other info: XP Sp2 iReport 3.6.1 installed with the windows installer to C:\iReport-nb-3.6.1 JDK is at C:\Sun\SDK\jdk Code:C:\> java -versionjava version "1.6.0_16"Java(TM) SE Runtime Environment (build 1.6.0_16-b01)Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode)
  9. Well... I figured out my own problem, and it just confirms my noobness. I was designing (and compiling) in iReport 3.5.2 . It turns out that the server was using the JasperReports 3.0.0 engine. Compiling with 3.5.2 and executing in 3.0.0 wasn't working. When I downloaded and recompiled with Jasper Reports 3.0.0 (as opposed to 3.5.2) it filled the report just fine.
×
×
  • Create New...