Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 14:12 Go to previous message
Eclipse UserFriend
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!
>
Previous Topic:Birt 3.7 Maven repository
Next Topic:Oda Customer Connector setup
Goto Forum:
  


Current Time: Wed Jul 23 15:33:42 EDT 2025

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

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

Back to the top