在CrystalReports BI 4.1中禁用徽标,刷新和导出图标(Disable the logo, refresh and export icon in CrystalReports BI 4.1)

337 IT屋

我想在CrystalReports中禁用标志,刷新和导出图标。



为此,我尝试了以下选项:



在BOE.ear / BOE.war / WEB -INF / eclipse / plugins / webpath.CrystalReports / web / WEB-INF / web.xml
下面添加条目



 < context-param> 
< param-name> viewrpt.export< / param-name>
< param-value> false< / param-value>
< description>设置是否显示导出按钮< / description>
< / context-param>

< context-param>
< param-name> viewrpt.logo< / param-name>
< param-value> false< / param-value>
< description>设置是否显示徽标< / description>
< / context-param>

< context-param>
< param-name> viewrpt.refresh< / param-name>
< param-value> false< / param-value>
< description>设置是否显示刷新按钮< / description>
< / context-param>


但这不工作。任何专家的意见将是有益的。感谢。


解决方案

默认情况下,BI4将使用预编译的JSP文件,并将忽略对代码所做的任何更改。 >

如果您要进行这些不支持的更改,请首先找到 global.properties 在 BOE.war 存档中的文件夹 WEB-INF / internal 查找属性 precompiled.jsp.files.use ,并将其从 true 更改为 false



接下来,在您的应用程序服务器上重新部署BOE webapp。您的更改现在应该应用。


I am trying to disable the logo, refresh and export icon in CrystalReports.

To achieve this, I tried with the following options

In BOE.ear/BOE.war/WEB-INF/eclipse/plugins/webpath.CrystalReports/web/WEB-INF/web.xml added below entries

<context-param> 
<param-name>viewrpt.export</param-name> 
<param-value>false</param-value> 
<description>Set whether a export button will be shown</description> 
</context-param> 

<context-param> 
<param-name>viewrpt.logo</param-name> 
<param-value>false</param-value> 
<description>Set whether a logo will be shown</description> 
</context-param> 

<context-param> 
<param-name>viewrpt.refresh</param-name> 
<param-value>false</param-value> 
<description>Set whether a refresh button will be shown</description> 
</context-param> 

But this is not working. Any expert advice would be helpful. Thanks.

解决方案

By default, BI4 will use precompiled JSP files and will ignore any changes you make to the code.

If you want to make these unsupported changes, first locate the file global.properties in the folder WEB-INF/internal in the BOE.war archive. Look for the property precompiled.jsp.files.use and change it from true to false.

Next, redeploy the BOE webapp on your application server. Your changes should now be applied.

本文地址:IT屋 » 在CrystalReports BI 4.1中禁用徽标,刷新和导出图标

相关文章: