Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
JWiseman
Active Contributor
0 Kudos


Have you ever wanted to easily hide the Crystal Reports 2008 toolbar in the web viewer?

 

Have you ever wanted to hide the drill-down tabs in the viewer?

 

How about changing the viewer background to white and aligning your content to the left of the viewer?

 

There are 3 great (yet little known) features in opendocument linking syntax that you can use to do the above. This is, again, for Crystal Reports 2008. If you have an earlier version, see the bottom of the article regarding using webelements to customize the toolbar.

 

Here's how to use these features:

 

1) first you have to publish a hyperlink to InfoView instead of giving your users direct access to the report. for example, the hyperlink below is for my sales report and i am putting in a default value for the country parameter. the end user will click on this hyerlink in InfoView instead of clicking on the report itself. hide the report in another folder that they don't have access to.

 

/OpenDocument/opendoc/openDocument.jsp?sType=rpt&sIDType=Name&sDocName=SalesReport&lsSCountry=Canada

 

2) to hide the toolbar, add "&toolbar=hide" to the end of your hyperlink. this will hide the toolbar in the Crystal Reports viewer. this is handy if you have reports wherein there is no real need to show the toolbar or you don't want the end user to access toolbar features.

 

3) to hide the drill-down tabs, add "&drilldowntabs=hide" to your hyperlink. this will hide all of the current and future drill-down tabs in the viewer. this is very useful if you don't want to have a collection of the drill-down tabs amassing at the top of the viewer.

 

if you do decide to hide the drill-down tabs, you can use report part linking to navigate back to the start of the report after drilling down. this can give a better user experience as you feel like you are on the same page all of the time versus bouncing from tab to tab. For more information on how to do this, look up "report part linking" in your on line help for Crystal Reports.

 

4) to change the background of the viewer to white and to align the viewer content to the left instead of having it centered, add "&sReportMode=weblayout" to your hyperlink.

 

here's a picture before using the above mentioned opendocument switches:



here's a picture after using the above mentioned opendocument switches:





remember that opendocument syntax is case sensitive. for more information on opendocument syntax, please see the document here.

 

if you want a method to allow the end user to suppress or hide or open toolbars, or to suppress or hide or open scrollbars, you can do this with webelements. there is a function "weviewer" that allows this funcitonality. for more information on webelements please see the page Crystal Reports webElements. the webelements method will work in XI, XIr2, and CR2008.

 

you can also hide certain buttons, such as the Export button, in the toolbar using webelements.

2 Comments