Package org.pentaho.reporting.engine.classic.core.modules.output.table.html

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.html.StaticURLRewriter


    final HtmlOutputProcessor outputProcessor = new StreamHtmlOutputProcessor(report.getConfiguration());
    final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
    printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, "index", "html"));
    printer.setDataWriter(zipRepository.getRoot(), new DefaultNameGenerator(targetRoot, "data", "bin"));
    printer.setUrlRewriter(new StaticURLRewriter("http://localhost:12345/content/{0}"));
    outputProcessor.setPrinter(printer);

    final StreamReportProcessor sp = new StreamReportProcessor(report, outputProcessor);
    sp.processReport();
    sp.close();
View Full Code Here


    final StreamRepository targetRepository = new StreamRepository(out);
    final ContentLocation targetRoot = targetRepository.getRoot();
    final FastHtmlContentItems contentItems = new FastHtmlContentItems();
    contentItems.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, "index", "html"));
    contentItems.setDataWriter(zipRepository.getRoot(), new DefaultNameGenerator(targetRoot, "data", "bin"));
    contentItems.setUrlRewriter(new StaticURLRewriter("http://localhost:12345/content/{0}"));

    final FastHtmlExportProcessor reportProcessor = new FastHtmlExportProcessor(report, contentItems);
    reportProcessor.processReport();
    reportProcessor.close();
    out.flush();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.table.html.StaticURLRewriter

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.