<p>Hi,</p>
<p>I am using Birt 4.4 and would like to limit report export format options to xlsx only.</p>
<p>i know that i can use " if(reportContext.getOutputFormat == "xlsx") " condition in the beforeFactory script to manipulate the report in case the export is to an xlsx format document.</p>
<p>So i wonder, is there a chance to only allow export to xlsx format? maybe something like "reportContext.setOutputFormat("xlsx")" exists? (its a rhetoric question that helps make clear what i am looking for), I've tried it just before the above condition, although the script validation was successful i got the following error upon report generation:</p>
<p> </p>
<p><b><span>org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "reportContext.setOutputFormat("xlsx"); if (reportContext.getOutputFormat == "xlsx"){ reportContext.getDesignHandle().layoutPreference = "auto layout"; } ": TypeError: Cannot find function setOutputFormat in object org.eclipse.birt.report.engine.script.internal.ReportContextImpl@50b69c. (/report/method[
@name="beforeFactory"]#1)</span></b></p>
<p> </p>
<p>So please if you know of a way to reach what i need please drop a line,</p>
<p>Thank you.</p>