public IReportRunnable openReportDesign(String designName, InputStream designStream, Map options) throws EngineException { ReportRunnable runnable = new ReportRunnable(engine, getReportDesignHandle(designName, designStream, options)); runnable.setReportName(designName); return runnable; }
/** * creates a report design runnable based on a report design handle. From the ReportRunnable * object, embedded images and parameter definitions can be retrieved. Constructing an engine task * requires a report design runnable object. * * @param designStream the report design input stream * @return a report design runnable object * @throws EngineException throwed when the input stream is null, or the stream does not yield a * valid report design */ public IReportRunnable openReportDesign(ReportDesignHandle designHandle) throws EngineException { ReportRunnable ret = new ReportRunnable(engine, designHandle); ret.setReportName((designHandle).getFileName()); return ret; }