// Create task to run the report - use the task to execute and run the report,
IRunTask runTask = engine.createRunTask(runnable);
// Create rptdocument
File document = createTempFile(fileFolder);
runTask.run(document.getAbsolutePath());
// Open rptdocument
IReportDocument rptdoc = engine.openReportDocument(document.getAbsolutePath());
// Create Render Task