Jasper Report,need help!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsuns82
    New Member
    • Mar 2007
    • 58

    Jasper Report,need help!!!

    Hi all,
    I am working jasper reports,i have got partial result for the code below.

    jasperReport = JasperCompileMa nager.compileRe port(
    "c:\\Jreport.jr xml");
    jasperPrint = JasperFillManag er.fillReport(
    jasperReport, new HashMap(), new JREmptyDataSour ce());
    JasperExportMan ager.exportRepo rtToPdfFile(jas perPrint, "sample.pdf ");
    // JasperViewer.vi ewReport(jasper Print);

    My Doubts are

    * Where should i locate the jrxml file in a web application???
    *I am getting
    "java.lang.NoCl assDefFoundErro r: com/lowagie/text/pdf/FontMapper" for
    JasperExportMan ager.exportRepo rtToPdfFile(jas perPrint, "sample.pdf ");
    But i can able to generate html,xml and view report successfuly.

    Kindly let me know what should i add further to my code???


    regards,
    sundar.
  • gsuns82
    New Member
    • Mar 2007
    • 58

    #2
    Originally posted by gsuns82
    Hi all,
    I am working jasper reports,i have got partial result for the code below.

    jasperReport = JasperCompileMa nager.compileRe port(
    "c:\\Jreport.jr xml");
    jasperPrint = JasperFillManag er.fillReport(
    jasperReport, new HashMap(), new JREmptyDataSour ce());
    JasperExportMan ager.exportRepo rtToPdfFile(jas perPrint, "sample.pdf ");
    // JasperViewer.vi ewReport(jasper Print);

    My Doubts are

    * Where should i locate the jrxml file in a web application???
    *I am getting
    "java.lang.NoCl assDefFoundErro r: com/lowagie/text/pdf/FontMapper" for
    JasperExportMan ager.exportRepo rtToPdfFile(jas perPrint, "sample.pdf ");
    But i can able to generate html,xml and view report successfuly.

    Kindly let me know what should i add further to my code???


    regards,
    sundar.
    hi guys,
    i got the result as follows:

    JasperCompileMa nager.compileRe portToFile("rep orts/DataBaseReport. jrxml", "reports/DataBaseReport. jasper");

    File reportFile = new File("reports/DataBaseReport. jasper");

    JasperRunManage r.runReportToPd fFile(reportFil e.getPath(), new HashMap(),
    new JRResultSetData Source(resultSe t));

    regards,
    sundar

    Comment

    Working...