Printing a Report

You can create a PDF for a report, a report section, or a report object. The PDF can then be printed. By default, an appendix is included in the PDF if the report, report section, or report object has descriptions, filters, warnings, errors, or display rule legends.
Here are some considerations for printing:
  • Controls are not included in the PDF. However, the information in a control is displayed in the appendix.
  • Info windows, report prompts, section prompts, and prompt containers are not included in the PDF. However, any filters that are applied to report objects in the prompt container are displayed in the appendix.
  • Vertical containers print only the currently selected report object. Horizontal and stack containers might print more than the currently selected report object if there is enough space.
  • If a list table or a crosstab has scroll bars, then some of the scrolled content might not be printed. However, more columns or rows might be printed than are visible in the designer. The print feature attempts to fill the space available on the page in the PDF.
  • If a report object has a high-cardinality filter, and the Show appendix information option is selected, then the filter description might be truncated in the printed appendix.
Here are some key points about printing output from a stored process or a stored process report:
  • Output from a stored process starts on a new page.
  • The stored process must use the %STPBEGIN and %STPEND macros. These macros provide standardized functionality for generating and delivering output from a stored process. For more information, see “Using the %STPBEGIN and %STPEND Macros” in SAS Stored Processes: Developer's Guide.
  • PDF security must be turned off for a stored process.
  • The stored process report must be configured to produce PDF output. In the stored process that is referenced by the stored process report, set the _ODSDEST variable to PDF. Or, define a stored process parameter for the _ODSDEST variable and configure it with a value of PDF for the stored process report. It is recommended that you also set the _ODSOPTIONS variable to notoc to save processing time and to reduce the size of the PDF produced by the stored process and the final PDF. For more information about ODS options, see “Using the %STPBEGIN and %STPEND Macros” in SAS Stored Processes: Developer's Guide.
To create a PDF that can be printed:
  1. Select Filethen select Print to PDF, or click the Print button. The Print window is displayed.
  2. Select the Paper size, Orientation, Options, and Margins. Your selections are saved for that report.
    If you select Custom for the paper size, you can specify the Height, and Width of the page. For custom paper sizes, you cannot change the page orientation.
    The Show appendix information option is selected by default if the report, report section, or report object has descriptions, filters, warnings, errors, or display rule legends.
  3. Make your selections in the Select the items to be printed list. You can select the report, the report sections, or the report objects.
  4. Click Print. The PDF is displayed in a browser.
When the Show appendix information option is specified, and the report, report section, or report object has descriptions, filters, warnings, errors, or display rule legends, then an appendix is created. Each report object that is selected to be included in the PDF is automatically assigned a value so that you can reference that report object in the appendix. For example, suppose that you select two report objects in the Select the items to be printed list. The first report object is assigned the value A1.1 and the second report object is assigned the value A1.2. Suppose that the first report object has a description and the second report object has a filter that has been applied. The first report object’s description is displayed in the appendix under the A1.1 heading. The second report object’s filter is displayed in the appendix under the A1.2 heading.
The following table lists the icons that can appear in the appendix:
Icon
Description
The Filter icon
Indicates that a report object contains a filter.
The Warning icon
Indicates that a report object contains a warning.
To print a report section, click the Down Arrow button on the Section tab, and then select Print <section-name> to PDF.
To print a report object, right-click on the report object in the canvas, and then select Print <report-object-name> to PDF. A stored process does not have the same pop-up menu selection.