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

clayshannon

Members
  • Posts

    14
  • Joined

  • Last visited

clayshannon's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. lknueve Wrote: change your text field expression from "$F{field}$F{CITY_OR_TOWN}" to "$F{CITY_OR_TOWN}" Thanks, that did the trick. So the tool needs to be fixed, because that was what IT entered - I didn't enter the $F twice, etc.
  2. I tried the same thing with the same data, but a .csv file replacing the .xls file. I got, I think, the same results. Here is some more specific feedback, from an iReportOutput pane: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :      1. Field not found : field      2. Field not found : field      3. Field not found : field      4. Field not found : field     at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258)     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140)     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:212)     at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:128)     at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:515)     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Compilation running time: 63
  3. I added a data source to my report in iReport Designer 4.1.2 (an .xls file) I then dragged some "Text Field"s from the Report Elements palette to the Detail band. I then set each TextField in turn to a different column in the .xls file, so that they are in this format: "$F{field}$F{CITY_OR_TOWN}" I then tried to compile the report, but got: "Field not found: field" for all four of my TextFields. What step am I missing here?
  4. I got my .jrxml converted programmatically to a .jasper file, but I had these warnings: log4j:WARN No appenders could be found for logger (net.sf.jasperreports.engine.xml.JRXmlDigesterFactory). log4j:WARN Please initialize the log4j system properly. Can anybody tell me how to get rid of them/what caused them?
  5. I've been trying to run a simple Java app that will compile a JasperReports report. However, when I try to run it, I keep getting err msgs. First, it was, "JasperCompileManager cannot be resolved". So I added jasperreports-4.1.2.jar to Eclipse's Project | Properties | Java Build Path. Similarly, I added commons-digester-1.7.jar, then commons-logging-1.0.4.jar, then commons-collections-2.1.1.jar, then commons-beanutils-1.8.0.jar But now I get the mother of all compilation err msgs: net.sf.jasperreports.engine.JRException : Error compiling report java source files : C:\EclipseJavaIndigo\JRSandbox\FirstReport_1316715202838_55800.java JRJavacCompiler.java:89)JRAbstractClassCompiler.java:63)JRAbstractCompiler.java:188)JasperCompileManager.java:212)JasperCompileManager.java:128)JasperCompileManager.java:87)JRSandbox.java:28)java.io.IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specifiedJRJavacCompiler.java:58)java.io.IOException: CreateProcess error=2, The system cannot find the file specifiedNative Method) What the deuce!?! at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses( at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits( at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport( at net.sf.jasperreports.engine.JasperCompileManager.compileReport( at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile( at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile( at com.jcp.tds.JRSandbox.JRSandbox.main( Caused by: at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses( ... 6 more Caused by: at java.lang.ProcessImpl.create( at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 10 more
  6. I am simply trying to get a simple Java app running that will compile a Jasper Report (.jrxml file). Here is my code: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ package com.jcp.tds.JRSandbox; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; /** * @author bcshanno * */ public class JRSandbox { /** * */ public JRSandbox() { // TODO Auto-generated constructor stub } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { JasperCompileManager.compileReportToFile("reports/FirstReport.jrxml"); } catch (JRException e) { e.printStackTrace(); } } } @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ As to the plug-in, I'm not sure that I"ve got it installed. How can I verify that I do/don't? If I don't, what do I need to do to install it?
  7. I assume I need to add some JasperReports files via Eclipse's Build Path | Add Libraries...but which ones? Or...? This code: import net.sf.jasperreports.engine.JRException; (etc.) gives me these err msgs: 1) The import net cannot be resolved 2) JRException cannot be resolved to a type 3) JasperCompileManager cannto be resolved
  8. When I try to build using the build.xml file by entering "ant" at the command prompt, I get "BUILD FAILED ... {jasperreports.lib.dir} does not exist.
  9. I want to create a project in Eclipse that will include a JasperReports element, so I need to access the JasperReports library. Can I do this using the Libraries tab of the New Java Project dialog/wizard? If so, which of the following buttons should I use: Add Library... Add Class Folder... Add External Class Folder... ...or...?
  10. I'm reading "JasperReports 3.5 for Java Developers" and have reached chapter 10 about iReport. Is iReport relevant if you're using Jaspersoft Studio?
  11. I used the Report Wizard to create a report. It displays fine in "Design" mode, but when I got to "Preview" it tells me there's no data, although I pasted a bunch of CSV data (and selected CSV as the "language" in the wizard). The Source contains: <queryString language="SQL"> <![CDATA[]]> </queryString> ...so I changed it to this: <queryString language="CSV"> <![CDATA[some stuff should go here, what about this?, or this?]]> </queryString> ...but I still get "No data" What's wrong/missing?
  12. BTW, my version of Eclipse: Eclipse IDE for Java Developers Version: Indigo Release Build id: 20110615-0604
  13. Can JasperReports be used in/by Android Honeycomb?
  14. I am trying to install Jaspersoft Studio into Eclipse, but get this err msg: "Cannot complete the install because one or more required items could not be found. Software being installed: Jaspersoft Studio 1.0.1 (com.jaspersoft.studio.feature.feature.group 1.0.1) Missing requirement: Jaspersoft Studio 1.0.1 (com.jaspersoft.studio.feature.feature.group 1.0.1) requires 'org.eclipse.datatools.sqldevtools.feature.feature.group 0.0.0' but it could not be found" After I mashed the "Back" button and ticked the checkbox to download required software, I got this dialog: "Problem Occurred" 'Contacting Software Sites' has encountered a problem. Some sites could not be found. See the error log for more detail. Details: No repository found at http://download.eclipse.org/tools/ve/updates/1.5.0/. No repository found at http://springide.org/updatesite-dev. No repository found at file:/C:/Documents%20and%20Settings/bcshanno/My%20Documents/. It seemed to go okay after that, anyway, until I finally got: "Problem Occurred 'Installing software' has encountered a problem. An error occurred while collecting items to be installed. Details: An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: osgi.bundle,com.jaspersoft.studio.doc,1.0.1. http://jasperstudio.sourceforge.net/updates/plugins/com.jaspersoft.studio.doc_1.0.1.jar Can anybody help?
×
×
  • Create New...