8.12 Printing Report Regions
Configure a report region to print by exporting it to several different formats.
Tip:
You must enable network services to use report printing if you configured an external print server. See Enabling Network Services in Oracle Database.
- About Report Printing
Learn about region report printing. - About Printing Reports to PDF and Excel
Learn about printing reports to PDF and Microsoft Excel. - Configuring Report Printing at the Application Level
Configuring report printing at the application level. - About Classic Report Printing Methods
Learn about printing classic report regions. - Configuring Classic Report Printing Attributes
Learn about printing a report region by configurng Printing Attributes. - About Report Queries
Learn about report queries. - About Report Layouts
Learn about report layouts.
See Also:
Parent topic: Developing Reports
8.12.1 About Report Printing
Learn about region report printing.
By taking advantage of region report printing, your application users can view and print reports that have a predefined orientation, page size, column headings, and page header and footer. Classic reports, interactive reports and interactive grids also have the ability to export to PDF, Microsoft Excel, HTML, and Comma Separated Values (CSV). Additional export formats require the use of an external print server.
Oracle APEX provides the following report printing configuration options:
- None (Native) - Select this option if you do not use an external print server. This option enables you to use the basic printing functionality, which includes CSV, HTML, PDF and XLSX.
- Oracle Document Generator Pre-built Function - Select this option if you are using Oracle Document Generator Pre-built Function. This option enables you to take report query results and convert them from JSON to PDF format using Oracle Document Generator Pre-built Function. Select this option to upload your own DOCX templates for printing reports within APEX.
-
Oracle BI Publisher - This option requires a valid license for Oracle BI Publisher (also known as Oracle XML Publisher). This option enables you to take report query results and convert them from XML to RTF format using Oracle BI Publisher. Select this option to upload your own customized RTF or XSL-FO templates for printing reports within APEX.
- APEX Office Print - Select this option if you are using APEX Office Print. This option enables you to take report query results and convert them from JSON to PDF/MS Office formats using APEX Office Print. Select this option to upload your own MS Office templates for printing reports within APEX.
- External (Apache FOP) - Select this option if you are using Apache FOP on an external J2EE server. This option enables you to use the basic printing functionality, which includes creating report queries and printing report regions using the default templates provided in APEX and using your own customized XSL-FO templates.
Note:
Your APEX instance administrator can change the report printing configuration for your instance. See Configuring Report Printing for an Instance in Oracle APEX Administration Guide
Parent topic: Printing Report Regions
8.12.2 About Printing Reports to PDF and Excel
Learn about printing reports to PDF and Microsoft Excel.
Oracle APEX includes native support for printing basic reports to PDF and Microsoft Excel. If you want full control and advanced layouts for your reports, Oracle recommends using a report server.
Limitations for native PDF and Microsoft Excel:
- A report row in PDF may span multiple lines and may have a single page break. The text is truncated if a row exceeds this limit.
- The maximum text size of a cell in Microsoft Excel is 32k. The text is truncated If a cell exceeds this limit.
Parent topic: Printing Report Regions
8.12.3 Configuring Report Printing at the Application Level
Configuring report printing at the application level.
To configure report printing at the application level:
To add a new Remote Print Server:
See Also:
- Creating a Remote Server
- Configuring Report Printing in a Full Development Environment in Oracle APEX Administration Guide
Parent topic: Printing Report Regions
8.12.4 About Classic Report Printing Methods
Learn about printing classic report regions.
There are two ways to print classic report regions:
-
Configure Printing Attributes for a Report Region. You can print a report region by configuring the Printing Attributes for the region. See Configuring Classic Report Printing Attributes,
-
Create a Report Query. You can print a report by defining a report query as a Shared Component. See Printing a Report Region by Defining a Report Query
Both report regions and report queries can be downloaded in the following formats:
-
PDF - Adobe Portable Document Format.
-
RTF - Microsoft Word Rich Text Format.
-
Excel - Microsoft Excel format. Note that when BI Publisher is configured as print server and a custom report layout is specified, the export is not a true
.xls
file because the content is HTML-based. -
HTML
-
XML - Extensible Markup Language.
To format either a report region or report query, you associate it with a report layout.
Tip:
You can also have the output format specified by an item that determines the output format at runtime. Select the item that holds the format value. Valid values are PDF, RTF (to open the document in Microsoft Word), XLS (to open the document in Microsoft Excel) and HTML (to download the document as an HTML file).
Parent topic: Printing Report Regions
8.12.5 Configuring Classic Report Printing Attributes
Learn about printing a report region by configurng Printing Attributes.
To configure a classic report region for printing:
See Also:
-
Configuring Report Printing for an Instance in Oracle APEX Administration Guide
Parent topic: Printing Report Regions
8.12.6 About Report Queries
Learn about report queries.
You can print a report region by defining a report query as a Shared Component. A report query uses a table, a SQL query, or a REST Data Source to identify the data to be extracted. Note that report queries must be SQL statements, not functions returning SQL statements.
Parent topic: Printing Report Regions
8.12.7 About Report Layouts
Learn about report layouts.
To format a classic report region, interactive report region, or report query, you associate it with a report layout. Using report layouts renders the data in a printer-friendly format. If you do not select a report layout, a default XSL-FO layout is used.
Parent topic: Printing Report Regions