<p>Hi all!</p>
<p> </p>
<p>I'm using birt engine <span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;">4.4.1 in eclipse designer the following beforeFactory code is run, but on the server it throws the following exception</span></p>
<pre class="_prettyXprint">
+ org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "reportContext.getRenderOption().setOption("ExcelEmitter.SingleSheet", true );
reportContext.getRenderOption().setOption("ExcelEmitter.ForceAutoColWidths", true );
reportContext.getRenderOption().setOption("ExcelEmitter.AutoColWidthsIncludeTableHeader", true );":
TypeError: Cannot call method "setOption" of null (/report/method[
@name="beforeFactory"]#1)</pre>