Package org.pentaho.reporting.engine.classic.core.modules.parser.extwriter

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriter


  }

  private String writeReport(final MasterReport report) throws IOException, ReportWriterException
  {
    final MemoryStringWriter oWriter = new MemoryStringWriter();
    final ReportWriter rc = new ReportWriter
        (report, "UTF-16", ReportWriter.createDefaultConfiguration(report));

    rc.addClassFactoryFactory(new URLClassFactory());
    rc.addClassFactoryFactory(new DefaultClassFactory());
    rc.addClassFactoryFactory(new BandLayoutClassFactory());
    rc.addClassFactoryFactory(new ArrayClassFactory());

    rc.addStyleKeyFactory(new DefaultStyleKeyFactory());
    rc.addStyleKeyFactory(new PageableLayoutStyleKeyFactory());
    rc.addTemplateCollection(new DefaultTemplateCollection());
    rc.addElementFactory(new DefaultElementFactory());
    rc.addDataSourceFactory(new DefaultDataSourceFactory());

    rc.write(oWriter);
    oWriter.close();
    return oWriter.toString();

  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriter

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.