Examples of IReportRunnable


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

            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

        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

                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

            HttpServletResponse response) throws ViewHandlerException {
       
        try {
            IReportEngine engine = org.ofbiz.birt.BirtFactory.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

                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

    } catch (Exception ex) {
      ex.printStackTrace();
    }

    IReportRunnable runnable = null;

    runnable = engine.openReportDesign(outputReportFile);

    // Create task to run the report - use the task to execute and run the report,
    IRunTask task2 = engine.createRunTask(runnable);
View Full Code Here

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

    {
      String designFile = directoryProvider.getReportDirectory() + report.getFile();
     
      log.info("Loading BIRT report design: " + report.getFile());
     
      IReportRunnable design = engine.openReportDesign(designFile);     
           
      handleDataSourceOverrides(design);       
     
      if (input.getExportType() == ExportType.PDF)
      {     
View Full Code Here

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

  {
    IReportEngine engine = BirtProvider
    .getBirtEngine(directoryProvider.getReportDirectory() + "platform");
   
    String designFile = directoryProvider.getReportDirectory() + report.getFile();
    IReportRunnable design = null;
   
    try
    {
      design = engine.openReportDesign(designFile);
    }
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
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.