Examples of parseReport()


Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

    }

    final MasterReport report;
    try
    {
      report = gen.parseReport(reportURL);
    }
    catch (Exception e)
    {
      System.err.println("The report could not be parsed."); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

    }

    final MasterReport report;
    try
    {
      report = gen.parseReport(reportURL);
    }
    catch (Exception e)
    {
      System.err.println("The report could not be parsed."); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

    }

    final MasterReport report;
    try
    {
      report = gen.parseReport(reportURL);
    }
    catch (Exception e)
    {
      System.err.println("The report could not be parsed."); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

        try {
            rmgr.registerDefaults();
            // TODO Figure out a non-deprecated way to load a report from InputStream
            final ReportGenerator generator = ReportGenerator.createInstance();
            final InputSource repDefInputSource = new InputSource(input);
            return generator.parseReport(repDefInputSource, null);
        } catch (Exception ex) {
            throw new ReportException("Unable to load report", ex);
        }
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

        // Read the encoding from the XML file - see BISERVER-895
        final String encoding = XmlHelper.getEncoding( repDef, null );
        ByteArrayInputStream inStream = new ByteArrayInputStream( repDef.getBytes( encoding ) );
        InputSource repDefInputSource = new InputSource( inStream );
        repDefInputSource.setEncoding( encoding );
        report = generator.parseReport( repDefInputSource, getDefinedResourceURL( null ) );
      } else {
        report = parseReport( resource );
      }
    }
    return report;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

    // Read the encoding from the XML file - see BISERVER-895
    final String encoding = XmlHelper.getEncoding( reportDefinition, null );
    ByteArrayInputStream inStream = new ByteArrayInputStream( reportDefinition.getBytes( encoding ) );
    InputSource reportDefinitionInputSource = new InputSource( inStream );
    reportDefinitionInputSource.setEncoding( encoding );
    return generator.parseReport( reportDefinitionInputSource, getDefinedResourceURL( url ) );
  }

  private MasterReport getReportFromJar() throws Exception {
    JFreeReportAction jFreeReportAction = (JFreeReportAction) getActionDefinition();
    MasterReport report;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

      ReportGenerator generator = ReportGenerator.getInstance();

      // add the runtime context so that PentahoResourceData class can get access to the solution repo
      // generator.setObject(PentahoResourceData.PENTAHO_RUNTIME_CONTEXT_KEY, getRuntimeContext());

      report = generator.parseReport( resourceUrl, getDefinedResourceURL( resourceUrl ) );
    } catch ( Exception ex ) {
      throw new Exception( Messages.getInstance().getErrorString(
          "JFreeReport.ERROR_0007_COULD_NOT_PARSE", reportLocation ), ex ); //$NON-NLS-1$
    }
    return report;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

      if ( resource.getSourceType() == IActionResource.XML ) {
        String repDef = resource.getAddress();
        ReportGenerator generator = ReportGenerator.getInstance();

        report =
            generator.parseReport( new InputSource( new ByteArrayInputStream( repDef.getBytes() ) ),
                getDefinedResourceURL( null ) );
      }
      report = parseReport( resource );
    } else if ( isDefinedInput( AbstractJFreeReportComponent.REPORTLOAD_RESOURCENAME ) ) {
      final String resName = getInputStringValue( AbstractJFreeReportComponent.REPORTLOAD_RESOURCENAME );
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

        } catch ( Exception e ) {
          // a null URL is ok
          warn( Messages.getInstance().getString( "JFreeReportLoadComponent.WARN_COULD_NOT_CREATE_URL" ) ); //$NON-NLS-1$
        }
        report =
            generator
                .parseReport(
                  new InputSource( new ByteArrayInputStream( repDef.getBytes( "UTF-8" ) ) ),
                  getDefinedResourceURL( url ) ); //$NON-NLS-1$
      }
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator.parseReport()

          reportLocation, resource.getAddress() ) );
    }

    try {
      ReportGenerator generator = ReportGenerator.getInstance();
      report = generator.parseReport( resourceUrl, getDefinedResourceURL( resourceUrl ) );
    } catch ( Exception ex ) {
      throw new Exception( Messages.getInstance().getErrorString(
          "JFreeReport.ERROR_0007_COULD_NOT_PARSE", reportLocation ), ex ); //$NON-NLS-1$
    }
    return report;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.