|
|
Re: Want to disable some option(like,ppt,word) in Export Report [message #721400 is a reply to message #721178] |
Thu, 01 September 2011 16:19 |
|
Probably the easiest way to do this is to modify the
ExportReportDialogFragment.jsp in the
WebViewer/webcontent/birt/pages/dialog folder
<SELECT ID="exportFormat" NAME="format"
CLASS="birtviewer_exportreport_dialog_select">
<%
for ( int i = 0; i < supportedFormats.length; i++ )
{
if ( !ParameterAccessor.PARAM_FORMAT_HTML.equalsIgnoreCase(
supportedFormats[i] ) )
{
%>
<OPTION VALUE="<%= supportedFormats[i] %>"><%=
ParameterAccessor.getOutputFormatLabel( supportedFormats[i] ) %></OPTION>
<%
}
}
%>
</SELECT>
Just put some code in to cull out the formats you do not want to list.
You could also remove the emitters from the run time jar, but the above
change is probably easier.
Jason
On 9/1/2011 2:29 AM, Abhijit wrote:
> Hi,
> I am generating my report in Birt report viewer. Wht I found is that I
> can export report in differnet format like ppt,word,excel etc.I don't
> want the option(lets say ppt,word) to come in the dropdown list.how to
> do that.
> Thanks in advance for any help.
>
> Abhijit
|
|
|
Powered by
FUDForum. Page generated in 0.03432 seconds