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

AndyDavis51

Members
  • Posts

    5
  • Joined

  • Last visited

AndyDavis51'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. Hello All I Am trying to write out a report to a PDF File using Jasper Reports but in keep getting a abend (see enclosed) I can write out to a XML & HTML File no problems but not a PDF File report does have data in as I can user JasperViewer and see it on the screen has any one any ideas. Code parameters.put("FPath",PagesReports+"GrpRpt.jasper"); String Str = PagesReports+"GrpRpt.jrxml"; String Des = PagesReports+"GrpRpt.jasper"; JasperCompileManager.compileReportToFile(Str,Des); jasperPrint = JasperFillManager.fillReport(Des,parameters,getDataSource("C:\PagesOutput\Saved Page.csv")); //System.out.println("Saving Report to PDF File "+fileName); JasperExportManager.exportReportToPdfFile(jasperPrint,"c:\GrpRpt.pdf"); Abend Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:121) at ebaysearcher.Main.main(Main.java:854) Java Result: 1 Any help would be welcome
  2. Grouping via Expressions Hello All, need a bit of help or Guidance I Have a CSV file that hold Category/ Sub Category / Price information all as readable strings. And have used “Ireports†to generate a report that groups on Category and them Sub Category and works and looks nice, but our client wants to go one further and have the report passed three bits of information, I guess this would be done via Variables (can get that bit) , These bit being the Main Category they are interested in and a Price range for that category say for Example Main Cat = “Mens Suits†and priced between £50 and £150 pounds etc Have used Ireports new Group wizard to try and do this but all I get is abends, but Syntax checks out ok , so I am missing something or not getting Sytanx correct. So I want to group on $f{MainCat} = “ a passed variable†and ${Price} > “x†and < “y†x and y are also passed variables but price is a string so needs some form of conversion into float/double etc as would X and y above This has been driving me nuts for about 1 week and I still cannot get it. Any examples of Grouping Syntax would be good it might give me a clue, where I am going wrong as that seems a normal report request from a client.
  3. It get stranger and Stranger been working on it all day. Class Files are being generated when i set System.setProperty("jasper.reports.compile.keep.java.file","true"); and i can see them in the folder in Question being Generated java.class.PATH looks ok C:JasperReportsReportITbuildclasses; C:JasperReportsjasperreports-1.2.7.jar; C:JasperReportscommons-digester-1.7.jar; C:JasperReportscommons-collections-3.2.jar; C:JasperReportscommons-logging-1.1.jar; C:JasperReportscommons-beanutils-bean-collections.jar; C:JasperReportscommons-beanutils-core.jar; C:JasperReportscommons-beanutils.jar Javac is in System32 on Windows So hope this gives some more Ideas.
  4. Thanks for That i did notice the missing "//" and corrected thant and it still abends, so still missing something.
  5. Hello All I AM new to using Jasperreports. Using Netbeans 5.0 with JDK 1.5 on Windows 2000/xp systems when i am running a report using code given below i get a abend and am not sure what it is telling me as code complies but abends on execute (Report works when designed/view using iReports. ----- Code public static void main(String[] args) { JasperReport jasperReport; JasperPrint jasperPrint; try { jasperReport = JasperCompileManager.compileReport("c:\GrpRpt.jrxml"); } catch (JRException ex) { ex.printStackTrace(); } I get this abend does any one have a clue why this is happing or have i missed something. --- Abend Java.io.FileNotFoundException: C:Documents and Settingsa1dlonReportITGrpRpt_1160471753177_959544.class (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:272) at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:73) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:190) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:144) at reportit.Main.main(Main.java:40)
×
×
  • Create New...