Examples of IReportRunnable


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

        HttpServletRequest request = (HttpServletRequest) options.getOption(InputOptions.OPT_REQUEST);

        try {
            ViewerAttributeBean attrBean = (ViewerAttributeBean) request.getAttribute(IBirtConstants.ATTRIBUTE_BEAN);
            String reportTitle = ParameterAccessor.htmlDecode(attrBean.getReportTitle());
            IReportRunnable runnable = (IReportRunnable) design.getDesignObject();

            // get maxRows
            Integer maxRows = null;
            if (ParameterAccessor.isReportParameterExist(request, ParameterAccessor.PARAM_MAXROWS)) {
                maxRows = Integer.valueOf(ParameterAccessor.getMaxRows(request));
View Full Code Here

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

                appContext.put("delegator", delegator);
                appContext.put("dispatcher", dispatcher);
                appContext.put("security", security);
               
                InputStream reportInputStream = BirtFactory.getReportInputStreamFromLocation(birtReportLocation);
                IReportRunnable design = engine.openReportDesign(reportInputStream);
                Debug.logInfo("Export report as content type:" + birtContentType, module);
                BirtWorker.exportReport(design, context, birtContentType, baos);
                baos.flush();
                baos.close();
View Full Code Here

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

                if (birtContentType == null) {
                    birtContentType = "application/pdf";
                }
                IReportEngine engine = BirtContainer.getReportEngine();
                InputStream reportInputStream = BirtFactory.getReportInputStreamFromLocation(birtReportLocation);
                IReportRunnable design = engine.openReportDesign(reportInputStream);
                     Debug.logInfo("Export report as content type:" + birtContentType, module);
                     BirtWorker.exportReport(design, context, birtContentType, baos);
                // and generate the PDF
                baos.flush();
                baos.close();
View Full Code Here

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

        if (design == null || design.getDesignObject( ) == null) {
            throw new ReportServiceException(BirtResources.getMessage(ResourceConstants.GENERAL_EXCEPTION_NO_REPORT_DESIGN));
        }

        IReportRunnable runnable;
        HttpServletRequest request = (HttpServletRequest) runOptions.getOption(InputOptions.OPT_REQUEST);
        Locale locale = (Locale) runOptions.getOption(InputOptions.OPT_LOCALE);
        TimeZone timeZone = (TimeZone) runOptions.getOption(InputOptions.OPT_TIMEZONE);

        ViewerAttributeBean attrBean = (ViewerAttributeBean) request.getAttribute(IBirtConstants.ATTRIBUTE_BEAN);
View Full Code Here

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

        HttpServletRequest request = (HttpServletRequest) options.getOption(InputOptions.OPT_REQUEST);

        try {
            ViewerAttributeBean attrBean = (ViewerAttributeBean) request.getAttribute(IBirtConstants.ATTRIBUTE_BEAN);
            String reportTitle = ParameterAccessor.htmlDecode(attrBean.getReportTitle());
            IReportRunnable runnable = (IReportRunnable) design.getDesignObject();

            // get maxRows
            Integer maxRows = null;
            if (ParameterAccessor.isReportParameterExist(request, ParameterAccessor.PARAM_MAXROWS)) {
                maxRows = Integer.valueOf(ParameterAccessor.getMaxRows(request));
View Full Code Here

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

            String contentType, String encoding, HttpServletRequest request,
            HttpServletResponse response) throws ViewHandlerException {
        try {
            IReportEngine engine = BirtContainer.getReportEngine();
            // open report design
            IReportRunnable design = null;
            if (page.startsWith("component://")) {
                InputStream reportInputStream = BirtFactory.getReportInputStreamFromLocation(page);
                design = engine.openReportDesign(reportInputStream);
            } else {
                design = engine.openReportDesign(servletContext.getRealPath(page));
View Full Code Here

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

        Map<String, Object> result = null;

        try {
            InputStream reportInputStream = ChartOfAccountReport.class
                    .getClassLoader().getResourceAsStream(REPORT_NAME);
            IReportRunnable report = reportEngine
                    .openReportDesign(reportInputStream);

            IRunAndRenderTask task = reportEngine
                    .createRunAndRenderTask(report);
            task.getAppContext().put(
View Full Code Here

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

        Map<String, Object> result = null;

        try {
            InputStream reportInputStream = ChartOfAccountReport.class
                    .getClassLoader().getResourceAsStream(REPORT_NAME);
            IReportRunnable report = reportEngine
                    .openReportDesign(reportInputStream);

            IRunAndRenderTask task = reportEngine
                    .createRunAndRenderTask(report);
            task.getAppContext().put(
View Full Code Here

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

        Map<String, Object> result = null;

        try {
            InputStream reportInputStream = ChartOfAccountReport.class
                    .getClassLoader().getResourceAsStream(REPORT_NAME);
            IReportRunnable report = reportEngine
                    .openReportDesign(reportInputStream);

            IRunAndRenderTask task = reportEngine
                    .createRunAndRenderTask(report);
            task.getAppContext().put(
View Full Code Here

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

    String documentId = (String) request.getParameter("document");
    logger.debug("documentId=" + documentId);

    ServletContext servletContext = getServletContext();
    this.birtReportEngine = BirtEngine.getBirtEngine(request, servletContext);
    IReportRunnable design = null;
    InputStream is = getTemplateContent(request,servletContext);
    logger.debug( "runReport(): template document retrieved.");
    // Open the report design
    design = birtReportEngine.openReportDesign(is);
   
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.