I'm using BIRT 2.6.2.
Is there a way to disable the option to export to excel, but only for SOME reports?
Alternatively, passing a URL parameter indicating if export to excel should be enabled is also a good option.
Look at ExportReportDialogFragment.jsp in the
webcontent/birt/pages/dialog directory of the web viewer.
In this code you can get the report name like:
String rpt = ParameterAccessor.PARAM_REPORT;
You should be able to use this with the if statement:
if ( !ParameterAccessor.PARAM_FORMAT_HTML.equalsIgnoreCase(
supportedFormats[i] ) )
To drop the excel export option.
Jason
On 7/26/2011 11:21 AM, rigimma-467 wrote:
> I'm using BIRT 2.6.2.
> Is there a way to disable the option to export to excel, but only for
> SOME reports?
> Alternatively, passing a URL parameter indicating if export to excel
> should be enabled is also a good option.