Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Want to disable some option(like,ppt,word) in Export Report(Want to disable some option(like,ppt,word) in Export Report)
Want to disable some option(like,ppt,word) in Export Report [message #721178] Thu, 01 September 2011 06:29 Go to next message
Abhijit Missing name is currently offline Abhijit Missing nameFriend
Messages: 2
Registered: September 2011
Junior Member
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
Re: Want to disable some option(like,ppt,word) in Export Report [message #721396 is a reply to message #721178] Thu, 01 September 2011 16:26 Go to previous message
sam va is currently offline sam vaFriend
Messages: 121
Registered: July 2011
Senior Member
We have customized our viewer code. We have our own navigation controls and export controls. We have only PDF, Excel exports
To make it simple for you, I guess you can change the existing viewer code according to your needs
Thanks

[Updated on: Thu, 01 September 2011 16:29]

Report message to a moderator

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 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:no results
Next Topic:BIRT - Installation problems on Win64 (Indigo)
Goto Forum:
  


Current Time: Fri Apr 26 08:13:17 GMT 2024

Powered by FUDForum. Page generated in 0.03637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top