|
|
Re: Is it possible to remove postscript option in Export Format window? [message #757842 is a reply to message #757641] |
Mon, 21 November 2011 18:52 |
|
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
>
|
|
|
Re: Is it possible to remove postscript option in Export Format window? [message #757844 is a reply to message #757802] |
Mon, 21 November 2011 19:12 |
|
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!
>
|
|
|
Powered by
FUDForum. Page generated in 0.04049 seconds