Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Is it possible to remove postscript option in Export Format window?
Is it possible to remove postscript option in Export Format window? [message #757641] Sun, 20 November 2011 18:28 Go to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
The current report data export file formats in available from the BIRT Viewer 3.7.0 are:

pdf
ppt
doc
xls
postscript

Question- Is it possible to remove the postscript export format from the drop down in Export Format dialog window?? If so, can you point me the files where I should make a change?

Thank you,
jyo
Re: Is it possible to remove postscript option in Export Format window? [message #757802 is a reply to message #757641] Mon, 21 November 2011 13:09 Go to previous messageGo to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
I tried to comment below in the WEB-INF/viewer.properties

viewer.extension.postscript=ps
viewer.label.postscript=PostScript

and commented out below from /webcontent/birt/ajax/utility/Constants.js
FORMAT_POSTSCRIPT : 'postscript',


but still that postscript option listed in the ExportWindow.

Please advise, it is possible or to remove that from displaying in the dropdown or not...

Thank you!
Re: Is it possible to remove postscript option in Export Format window? [message #757842 is a reply to message #757641] Mon, 21 November 2011 13:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Yes you can modify the ExportReportDialogFragment.jsp in the viewer
webcontent\birt\pages\dialog directory. Just add another if statement
to the select option (id exportFormat) for the postscript format. You
will see it already ignores html.

<TD>
<%=BirtResources.getMessage( "birt.viewer.dialog.export.format" )%>
<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>
</TD>

Jason


On 11/20/2011 6:28 PM, jyo wrote:
> The current report data export file formats in available from the BIRT
> Viewer 3.7.0 are:
>
> pdf
> ppt
> doc
> xls
> postscript
>
> Question- Is it possible to remove the postscript export format from the
> drop down in Export Format dialog window?? If so, can you point me the
> files where I should make a change?
>
> Thank you,
> jyo
>


Jason Weathersby

BIRT Exchange
Re: Is it possible to remove postscript option in Export Format window? [message #757844 is a reply to message #757802] Mon, 21 November 2011 14:12 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Yes you can modify the ExportReportDialogFragment.jsp in the viewer
webcontent\birt\pages\dialog directory. Just add another if statement
to the select option (id exportFormat) for the postscript format. You
will see it already ignores html.

<TD>
<%=BirtResources.getMessage( "birt.viewer.dialog.export.format" )%>
<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>
</TD>

Jason


On 11/21/2011 1:09 PM, jyo wrote:
> I tried to comment below in the WEB-INF/viewer.properties
>
> viewer.extension.postscript=ps
> viewer.label.postscript=PostScript
>
> and commented out below from /webcontent/birt/ajax/utility/Constants.js
> FORMAT_POSTSCRIPT : 'postscript',
>
>
> but still that postscript option listed in the ExportWindow.
> Please advise, it is possible or to remove that from displaying in the
> dropdown or not...
>
> Thank you!
>


Jason Weathersby

BIRT Exchange
Previous Topic:Birt 3.7 Maven repository
Next Topic:Oda Customer Connector setup
Goto Forum:
  


Current Time: Fri Apr 18 21:59:23 EDT 2014

Powered by FUDForum. Page generated in 0.01673 seconds