SAP Knowledge Base Article - Public

1722360 - How to suppress objects when printing a report from Crystal Reports?

Symptom

  • How to suppress fields when printing a report
  • How to hide report objects when the report is printed to a printer, but displayed when the report is viewed in Crystal Reports

Environment

  • SAP Crystal Reports 2013
  • SAP Crystal Reports 2016
  • SAP Crystal Reports 2020

Reproducing the Issue

  1. In Crystal Reports, create a report off any data source.
  2. Add an object to the report you want to see when viewed, but not when printed.
  3. View the report in Crystal Reports, and notice the object displays
  4. Print the report to the printer, and notice the object is displayed as well.
  5. How to suppress or hide an object when printing the report to a printer?
  1. For example:
  2. A company logo is added to the Page Header section of a report.
  3. When the report is viewed, the company logo needs to be displayed in Crystal Reports,
  4. but not when the report is printed because the company paper already have the logo pre-printed.

 Example.png

Resolution

  • There is unfortunately no functionalities in Crystal Reports designer that can be used to suppress an object when the report is printed to a printer, and displayed when viewed in Crystal Reports.
  • As a workaround, use a parameter to conditionally suppress the objects before the report is printed.
  • For general steps on how to apply this technique to a report, see the sample report attached to this SAP Knowledge Base Article.

Keywords

CR , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To

Product

SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports 2020

Attachments

Suppress Objects When Printing.zip