Package org.eclipse.birt.report.engine.api

Examples of org.eclipse.birt.report.engine.api.IRenderTask


    // Open rptdocument
    IReportDocument rptdoc = engine.openReportDocument(document.getAbsolutePath());

    // Create Render Task
    IRenderTask renderTask = engine.createRenderTask(rptdoc);

    PDFRenderOption optionsPDF = new PDFRenderOption();
    optionsPDF.setOutputFileName("D:/Temp/output.pdf");
    optionsPDF.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_PDF);
    renderTask.setRenderOption(optionsPDF);

    // render
    renderTask.render();

    // render the report and destroy the engine
    // Note - If the program stays resident do not shutdown the Platform or the Engine
//    rptdoc.close();
    renderTask.close();
    runTask.close();
    engine.shutdown();
    Platform.shutdown();
    RegistryProviderFactory.releaseDefault();
View Full Code Here


    // Open rptdocument
    IReportDocument rptdoc = engine
        .openReportDocument("D:/Temp/TOCTest.rptdocument");

    // Create Render Task
    IRenderTask rtask = engine.createRenderTask(rptdoc);

    PDFRenderOption optionsPDF = new PDFRenderOption();
    optionsPDF.setOutputFileName("D:/Temp/output.pdf");
    optionsPDF.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_PDF);
    rtask.setRenderOption(optionsPDF);

    // render
    rtask.render();

    // render the report and destroy the engine
    // Note - If the program stays resident do not shutdown the Platform or
    // the Engine
    task2.close();
View Full Code Here

TOP

Related Classes of org.eclipse.birt.report.engine.api.IRenderTask

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.