Configuring Report Printing for an Instance
Enable end users to download and print reports in various formats, including PDF.
About Configuring Report Printing
Enable report printing by configuring printing settings at the instance level, application level, and page and region level.
To set up report printing functionality, you must configure the following printing settings:
-
Instance Level: For full development environments, instance administrators must select a Print Server under Instance Settings, Report Printer. In runtime environments, instance administrators must specify the level of functionality (Standard or Advanced) for an entire APEX instance, as described in this section.
-
Application Level: Developers can specify a Print Server at the application-level by editing the Print Server Type attribute on the Application Definition page. Alternatively, workspace administrators and developers can define Report Queries and Report Layouts. Report Queries and Report Layouts are stored under Shared Components and are not tied to a specific page.
-
Page/Region Level: Developers can edit the report regions on specific pages to enable printing. This enables end users to print regions as reports in various formats.
See Also: Printing Report Regions in Oracle APEX App Builder User’s Guide
When using the Oracle Document Generator Pre-built Function , your APEX instance must run off a database with DBMS_CLOUD installed. Prior to configuring report printing, you must create the DBMS_CLOUD credential in the database, and configure Document Generator as a Remote Print Server through the OCI Pre-built Function Page.
Tip:
For more information on configuring the DBMS_CLOUD credential, see Understanding Web Credentials in Oracle APEX App Builder User’s Guide.
For more information on configuring Document Generator as a Remote Print Server, see Document Generator Function in Oracle Cloud Infrastructure Documentation.
Configuring Report Printing in a Full Development Environment
Configure the print server type for an instance by editing the Print Server Type attribute on the Instance Settings page.
To configure the printing of reports in a full development environment:
-
Sign in to Administration Services.
-
Click Manage Instance.
-
Under Instance Settings, click Instance Settings.
-
Click Report Printing.
-
For Printer Server, select an option:
-
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.
-
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.
-
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.
-
Oracle Document Generator Pre-built Function - Select this option if you are using the Document Generator function on Oracle Cloud Infrastructure (OCI). This option enables you to take report query results and convert them from JSON to PDF/Microsoft Office format using Oracle Document Generator Pre-built Function. Select this option to upload your own Microsoft Office templates for printing reports within APEX.
What appears next depends upon the Print Server you select.
-
-
If the Print Server is External (Apache FOP):
-
Protocol - Select whether the print server uses HTTP or HTTPS protocol.
-
Host Address - Specify the host address of the print server converting engine. By default, this is set to
localhost. -
Port - Specify the host address of the print server converting engine. The default setting is
8888. -
Script - Defines the script that is the print server engine. The default setting is:
/xmlpserver/convert -
Print Timeout - Enter the number of seconds. Defines the transfer timeout for communicating with the print server in seconds.
-
-
If the Print Server is Oracle BI Publisher:
-
Protocol - Select whether the print server uses HTTP or HTTPS protocol.
-
Host Address - Specify the host address of the print server converting engine. By default, this is set to
localhost. -
Port - Specify the host address of the print server converting engine. The default setting is
8888. -
Script - Defines the script that is the print server engine. The default setting is:
/xmlpserver/convert -
Username - Enter a username if your print server requires authentication.
-
Password - Enter a password if your print server requires authentication.
-
Confirm Password - Enter the print password again to confirm.
-
Print Timeout - Enter the number of seconds. Defines the transfer timeout for communicating with the print server in seconds.
-
-
If the Print Server is Oracle Document Generator Pre-built Function:
-
Cloud Credential - Specifies the cloud credential to use for Oracle Object Storage bucket management and use of the Oracle Document Generator Pre-built function.
Note: The Cloud credential can be created using the
APEX_INSTANCE_ADMIN.CREATE_CLOUD_CREDENTIALAPI. -
Object Storage Namespace - Specifies the top-level container for all buckets and objects. At account creation time, each Oracle Cloud Infrastructure (OCI) tenant is assigned one unique system-generated and immutable Object Storage namespace name. This information can be found in the OCI console.
-
Object Storage Bucket Compartment OCID - Specifies the Oracle Cloud Identifier (OCID) of the compartment in which APEX should create the Object Storage bucket.
-
Object Storage Bucket Endpoint - Specifies the base URL endpoint for the Oracle Object Storage bucket.
-
Function OCID - Specifies the Oracle Cloud Identity (OCID) of the Oracle Document Generator Pre-built function. This can be found in the Oracle Cloud Infrastructure (OCI) console.
-
Function Endpoint - Specifies the base URL endpoint of the Oracle Document Generator Pre-built function. This can be found in the Oracle Cloud Infrastructure (OCI) console.
-
-
For APEX Office Print, specify the following:
-
Protocol - Select whether the print server uses HTTP or HTTPS protocol.
-
Host Address - Specify the host address of the print server converting engine. By default, this is set to
localhost. -
Port - Specify the host address of the print server converting engine. The default setting is
8888. -
Script - Defines the script that is the print server engine.
-
API Key - If you are using APEX Office Print Cloud Server, enter the Print Server API Key. Do not enter an API Key if you running APEX Office Print locally.
-
Print Timeout - Enter the number of seconds. Defines the transfer timeout for communicating with the print server in seconds.
-
-
Click Apply Changes.
Tip: You can override the Print Server Type instance-level setting at the application-level by editing the Print Server Type attribute on the Application Definition page. See Configuring Report Printing at the Application Level in Oracle APEX App Builder User’s Guide
Configuring Report Printing Settings in a Runtime Environment
Configure report printing settings in a runtime environment by starting SQLcl and running the following SQL statements.
To configure report printing settings in a runtime environment:
-
Start SQLcl and connect to the database where APEX is installed as
SYS. For example:-
On Windows:
SYSTEM_DRIVE:> sql /nolog SQL> CONNECT SYS as SYSDBA Enter password: SYS_password -
On UNIX and Linux:
$ sql /nolog SQL> CONNECT SYS as SYSDBA Enter password: SYS_password
-
-
Run the following statement:
BEGIN APEX_INSTANCE_ADMIN.SET_PARAMETER(PARAMETER_NAME, PARAMETER_VALUE); COMMIT; END;Available parameters are as follows:
Parameter Name Description PRINT_BIB_LICENSEDSpecify either standard support or advanced support. Advanced support requires an Oracle BI Publisher license. Valid values include:
STANDARDADVANCEDDOCUMENT_GENERATORAOPNONE
PRINT_SVR_HOSTSpecifies the host address of the print server converting engine, for example, localhost. Enter the appropriate host address if the print server is installed at another location.PRINT_SVR_PORTDefines the port of the print server engine, for example 8888. Value must be a positive integer.PRINT_SVR_PROTOCOLValid values include: httphttps
PRINT_SVR_SCRIPTDefines the script that is the print server engine, for example: /xmlpserver/convert
See Also: SET_PARAMETER Procedure in Oracle APEX API Reference
Determining Report Printing Settings in a Runtime Environment
Determine report printing settings in a runtime environment.
To determine report printing settings in a runtime environment:
-
Start SQLcl and connect to the database where APEX is installed as
SYS. For example:-
On Windows:
SYSTEM_DRIVE:> sql /nolog SQL> CONNECT SYS as SYSDBA Enter password: SYS_password -
On UNIX and Linux:
$ sql /nolog SQL> CONNECT SYS as SYSDBA Enter password: SYS_password
-
-
Run the following statement:
SELECT APEX_INSTANCE_ADMIN.GET_PARAMETER(PARAMETER_NAME) FROM DUAL;
See Also:
-
See Configuring Report Printing Settings in a Runtime Environment for a description of available parameters.
-
GET_PARAMETER Function in Oracle APEX API Reference