Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.TableDataFactory


  public MasterReport createReport() throws ReportDefinitionException
  {
    final PeopleReportDefinition reportCreator = new PeopleReportDefinition();
    final MasterReport report = reportCreator.getReport();
    report.setDataFactory(new TableDataFactory
        ("default", tableModel));
    return report;
  }
View Full Code Here


      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      DynamicallyShowColumnsReportData reportData = new DynamicallyShowColumnsReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("SQLC1_name", "IN STOCK");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC2_name", "COST");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC3_name", "MSRP");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("ShowCol", "Show_Column3");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      DynamicallyShowColumnsReportData reportData = new DynamicallyShowColumnsReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("SQLC1_name", "IN STOCK");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC2_name", "COST");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC3_name", "MSRP");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("ShowCol", "Show_Column3");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      DynamicallyShowColumnsReportData reportData = new DynamicallyShowColumnsReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("SQLC1_name", "IN STOCK");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC2_name", "COST");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC3_name", "MSRP");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("ShowCol", "Show_Column3");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      DynamicallyShowColumnsReportData reportData = new DynamicallyShowColumnsReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      report.getParameterValues().put("SQLC1_name", "IN STOCK");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC2_name", "COST");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("SQLC3_name", "MSRP");//$NON-NLS-1$ //$NON-NLS-2$
      report.getParameterValues().put("ShowCol", "Show_Column3");//$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      InventoryListReportData reportData = new InventoryListReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      FileOutputStream outputStream = new FileOutputStream(new File(outputFilename));
      PdfReportUtil.createPDF(report, outputStream);
      isEqual = comparePdf(inputFileName, outputFilename, logFile);
    } catch (Throwable t) {
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      InvoiceReportData reportData = new InvoiceReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      FileOutputStream outputStream = new FileOutputStream(new File(outputFilename));
      HtmlReportUtil.createStreamHTML(report, outputStream);
      // Comparing the File just generated with the golden version
      //isEqual = compareHtml(inputFileName, outputFilename, logFile);
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      InvoiceReportData reportData = new InvoiceReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      FileOutputStream outputStream = new FileOutputStream(new File(outputFilename));

      ExcelReportUtil.createXLS(report, outputStream);
      //    Comparing the File just generated with the golden version
View Full Code Here

      // Create a JFreeReport from the XML file
      MasterReport report = parseReport(reportDefinition);

      // Create the data for the report
      InvoiceReportData reportData = new InvoiceReportData();
      TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
      report.setDataFactory(tableDataFactory);
      CSVReportUtil.createCSV(report, outputFilename);
      //    Comparing the File just generated with the golden version
      isEqual = contentsEqual(inputFileName, outputFilename, false);
    } catch (Throwable t) {
View Full Code Here

  }

  public MasterReport createReport() throws ReportDefinitionException
  {
    MasterReport report = parseReport();
    report.setDataFactory(new TableDataFactory
        ("default", data));
    return report;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.TableDataFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.