(Don't Print) class

The (Don't Print) class allows HTML items to display in the Web browser but not to print.

The (Don't Print) class behaves as follows in the various report output formats:

  • HTML

    The Web browser defines the behavior. The HTML standard is that the item appears on the screen in the Web browser but is excluded by the print operation of the Web browser.

  • PDF

    The item is excluded from the output.

  • Microsoft Excel 2002 spreadsheet software

    The class is specified in the HTML that IBM® Cognos® uses to render Microsoft Excel 2002 output. However, Microsoft Excel 2002 does not appear to honor it and displays the item as missing some or all other style definitions.

  • Microsoft Excel 2007 spreadsheet software

    The item is excluded from the output.

  • CSV

    The item is included in the output.

  • XML

    The item is included in the output.

An alternative way to consistently exclude a report object from HTML, PDF and Microsoft Excel output is to set the Box Type property for the object to None. CSV and XML report outputs will still contain the object.