title: BIRT csv emitter and EJB
body: <p>I want to use csv emitter plugin in a Java EE application. Is it possible? I get the following error:</p>
  
  <pre><code>org.eclipse.birt.report.engine.api.UnsupportedFormatException: The output format csv is not supported.
  at org.eclipse.birt.report.engine.api.impl.EngineTask.setupRenderOption(EngineTask.java:2047)
  at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:96)
  at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>protected String generateReportFile(IRunAndRenderTask task, IReportRunnable design, IReportEngine engine, String reportType, String reportPrefix, String baseDir) throws BirtReportGenerationFault {
        CSVRenderOption csvOptions = new CSVRenderOption();
  
          csvOptions.setOutputFormat(CSVRenderOption.OUTPUT_FORMAT_CSV);
  
          csvOptions.setOutputFileName("C:/birt/logs/csvTestW.csv");
  
          csvOptions.setShowDatatypeInSecondRow(false);
  
          csvOptions.setExportTableByName("data");
  
          csvOptions.setDelimiter("\t");
  
          csvOptions.setReplaceDelimiterInsideTextWith("-");
  
          task.setRenderOption(csvOptions);               
          task.setEmitterID("org.eclipse.birt.report.engine.emitter.csv");
  
          try {
              task.run();// Error here
          } catch (EngineException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          task.close();
  
  
      return "C:/birt/logs/csvTestW.csv";//fileName;
    }
  </code></pre>
  
  <p>Same code works in a Java SE app. </p>