11 Setting Up Delivery Destinations

This chapter describes the setup required to deliver BI Publisher reports to printers, e-mail servers, FTP servers, and WebDav servers. It also describes how to set up the HTTP notification server.

It covers the following topics:

11.1 Configuring Delivery Options

Use the Delivery Configuration Options page to set general properties for e-mail deliveries and notifications from BI Publisher and for defining the SSL certificate file.

To configure delivery options:

  1. From the Admin page, select Delivery Configuration, as shown in Figure 11-1.

    Figure 11-1 Delivery Configuration Page

    Description of Figure 11-1 follows
    Description of "Figure 11-1 Delivery Configuration Page"

  2. Enter the following properties:

    • SSL Certificate File — If SSL is enabled for your installation, then you can leave this field empty if you want to use the default certificates built-in with BI Publisher. SSL works with the default certificate if the server uses the certificate signed by a trusted certificate authority such as Verisign. This field is mandatory only if the user uses the SSL with a self-signed certificate. The self-signed certificate means the certificate is signed by a non-trusted certificate authority (usually the user).

    • E-mail From Address — Enter the From address to appear on e-mail report deliveries from the BI Publisher server. The default value is bipublisher-report@oracle.com.

    • Delivery Notification E-mail From Address — Enter the From address to appear on notifications delivered from the BI Publisher server. The default value is bipublisher-notification@oracle.com.

    • Success Notification Subject — Enter the subject line to display for e-mail notification recipients when the report status is Success.

    • Warning Notification Subject — Enter the subject line to display for e-mail notification recipients when the report status is Warning.

    • Failure Notification Subject — Enter the subject line to display for e-mail notification recipients when the report status is Failed.

    • Skipped Notification Subject — Enter the subject line to display for e-mail notification recipients when the report status is Skipped.

11.2 Adding a Printer

Regardless of whether BI Publisher is running on Linux, Unix, or Windows, the printer destination can be any IPP server. The IPP server can be the printer itself, which is the easiest option, but if the printer does not natively support IPP, you can set up a print server that does support IPP (such as CUPS) and connect BI Publisher to the print server and then the print server to the printer. In this print server scenario, the print server can run on any operating system.

To send fax from BI Publisher, you must set up Common Unix Printing Service (CUPS) and the fax4CUPS extension, to enable connection to your fax server from BI Publisher. The fax set up requires this plugin to the CUPS server on the operating system. Note that the Administration page makes the distinction between a fax and printer server in the UI so that users can pick one or the other or both at runtime. Even though the fax and printer server that the users see can both use a single CUPS server.

For information on setting up CUPS or Windows IPP print servers and how to connect network printers to them, refer to the CUPS or Windows IPP software vendor documentation.

About Printing PDF

PDF is a popular output format for business reports and is printable from viewer software such as Adobe Reader. However, some reports require printing directly from the report server. For example, paychecks and invoices are usually printed as scheduled batch jobs. Some newer printers with PostScript Level 3 compliant Raster Image Processing can natively support PDF documents, but there are still many printers in business use that only support PostScript Level 2 that cannot print PDF documents directly.

To print PDF documents directly from the BI Publisher server if your printer or print server does not support printing PDF, you have the following options:

  • Select one of BI Publisher's filters: PDF to PostScript or PDF to PCL.

  • Configure a custom, or third-party filter.

After completing all other required fields for the print server, you can schedule reports to print directly from the BI Publisher server to any printer in your system that supports PostScript Level 2.

To set up a printer:

  1. From the Admin page select Printer. Select Add Server.

  2. Enter the following required fields:

    • Server Name — Enter a unique name. Example: Localprinter

    • URI — Enter the Uniform Resource Identifier for the printer. Example: ipp://myhost:631/printers/myprinter

  3. Enter a Filter (optional).

    A filter enables you to call a conversion utility to convert the PDF generated by BI Publisher to a file format supported by your specific printer type. BI Publisher provides the following filters:

    • PDF to PostScript

      BI Publisher includes a PDF to PostScript filter. This filter converts PDF to PostScript Level 2. Select PDF to PostScript from the list to use BI Publisher's predefined filter.

    • PDF to PCL

      To convert PDF to PCL, select PDF to PCL. This automatically populates the Filter Command field.

      BI Publisher supports the PDF to PCL conversion only for font selection requirements for check printing. For generic printing requirements, use the PDF to PostScript filter.

      You can embed PCL commands into RTF templates to invoke the PCL commands at a specific position on the PCL page; for example, to use a font installed on the printer for routing and account numbers on a check. For more information, see "Embedding Printer Control Language (PCL) Commands for Check Printing" in Oracle Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher.

    You can also call a custom filter using operating system commands.

    About Custom Filters

    To specify a custom filter, pass the native OS command string with the two placeholders for the input and output filename, {infile} and {outfile}.

    This is useful especially if you are trying to call IPP printers directly or IPP printers on Microsoft Internet Information Service (IIS). Unlike CUPS, those print servers do not translate the print file to a format the printer can understand, therefore only limited document formats are supported. With the filter functionality, you can call any of the native OS commands to transform the document to the format that the target printer can understand.

    For example, to transform a PDF document to a PostScript format, enter the following PDF to PS command in the Filter field:

    pdftops {infile} {outfile}

    To call an HP LaserJet printer setup on a Microsoft IIS from Linux, you can set Ghostscript as a filter to transform the PDF document into the format that the HP LaserJet can understand. To do this, enter the following Ghostscript command in the Filter field:

    gs -q -dNOPAUSE -dBATCH -sDEVICE=laserjet -sOutputFile={outfile} {infile}
    

    For fax servers, you can use the filter to transform the file to Tag Image File Format (TIFF).

  4. Optionally enter the following fields if appropriate:

    • Security fields — Username and Password, Authentication Type (None, Basic, Digest) and Encryption Type (None, SSL).

    • Proxy Server fields — Host, Port, User Name, Password, Authentication Type (None, Basic, Digest)

11.3 Adding a Fax Server

To send fax from BI Publisher, you must set up Common Unix Printing Service (CUPS) and the fax4CUPS extension, to enable fax transmissions from BI Publisher.

See the following resources for information about setting up CUPS and the fax4CUPS extension:

To set up fax delivery:

  1. From the Admin page select Fax. Select Add Server.

  2. Enter the following required fields:

    • Server Name — Enter a unique name. Example: Localprinter

    • URI — Enter the Uniform Resource Identifier for the printer. Example: ipp://myhost:631/printers/myprinter

  3. Enter a Filter (optional).

    A filter enables you to call a conversion utility to convert the PDF generated by BI Publisher to a file format supported by your specific printer type. BI Publisher provides the following filters:

    • PDF to PostScript

      BI Publisher includes a PDF to PostScript filter. This filter converts PDF to PostScript Level 2. Select PDF to PostScript from the list to use BI Publisher's predefined filter.

    • PDF to PCL

      To convert PDF to PCL, select PDF to PCL. This automatically populates the Filter Command field.

      BI Publisher supports the PDF to PCL conversion only for font selection requirements for check printing. For generic printing requirements, use the PDF to PostScript filter.

      You can embed PCL commands into RTF templates to invoke the PCL commands at a specific position on the PCL page; for example, to use a font installed on the printer for routing and account numbers on a check. For more information, see "Embedding Printer Control Language (PCL) Commands for Check Printing" in Oracle Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher.

    You can also call a custom filter using operating system commands.

    About Custom Filters

    To specify a custom filter, pass the native OS command string with the two placeholders for the input and output filename, {infile} and {outfile}.

    This is useful especially if you are trying to call IPP printers directly or IPP printers on Microsoft Internet Information Service (IIS). Unlike CUPS, those print servers do not translate the print file to a format the printer can understand, therefore only limited document formats are supported. With the filter functionality, you can call any of the native OS commands to transform the document to the format that the target printer can understand.

    For example, to transform a PDF document to a PostScript format, enter the following PDF to PS command in the Filter field:

    pdftops {infile} {outfile}

    To call an HP LaserJet printer setup on a Microsoft IIS from Linux, you can set Ghostscript as a filter to transform the PDF document into the format that the HP LaserJet can understand. To do this, enter the following Ghostscript command in the Filter field:

    gs -q -dNOPAUSE -dBATCH -sDEVICE=laserjet -sOutputFile={outfile} {infile}
    

    For fax servers, you can use the filter to transform the file to Tag Image File Format (TIFF).

  4. Optionally enter the following fields if appropriate:

    • Security fields — Username and Password, Authentication Type (None, Basic, Digest) and Encryption Type (None, SSL).

    • Proxy Server fields — Host, Port, User Name, Password, Authentication Type (None, Basic, Digest)

11.4 Adding an E-Mail Server

To add an e-mail server:

  1. From the Admin page select Email. This displays the list of servers that have been added. Select Add Server.

  2. Enter the Server Name, Host, and Port for the e-mail server.

  3. Select a Secure Connection method to use for connections with the e-mail server. The options are:

    • None

    • SSL — Use Secure Socket Layer.

    • TLS (Transport Layer Security) — Use TLS when the server supports the protocol; SSL is accepted in the response.

    • TLS Required — If the server does not support TLS, then the connection is not made.

  4. Optionally enter the following fields if appropriate:

    • General fields — Port

    • Security fields — Username and Password.

11.5 Adding a WebDAV Server

To add a WebDAV server:

  1. From the Admin page select WebDAV to display the list of servers that have been added. Select Add Server.

  2. Enter the Name and Host for the new server.

  3. Optionally enter the following fields if appropriate:

    • General fields — Port

    • Security fields — Authentication Type (None, Basic, Digest) and Encryption Type (None, SSL).

    • Proxy Server fields — Host, Port, User Name, Password, Authentication Type (None, Basic, Digest)

11.6 Adding an HTTP Server

You can register an application URL or postprocess HTTP URL as an HTTP server to send a notification request to after the report has completed. The HTTP notification sent by BI Publisher posts a form data for Job ID, report URL and Job Status to the HTTP Server URL page.

For more information about setting up an HTTP notification to integrate with a third-party application, see the chapter "Setting Up After-Report Triggers" in the Oracle Fusion Middleware Developer's Guide for Oracle Business Intelligence Publisher. For information on enabling an HTTP notification for a scheduled report, see the section "Configuring Notifications" in the Oracle Fusion Middleware User's Guide for Oracle Business Intelligence Enterprise Edition.

To add an HTTP server:

  1. From the Admin page select HTTP to display the list of servers that have been added. Select Add Server.

  2. Enter a name for the server, and enter the URL. When the report finishes processing, BI Publisher posts form data for Job ID, report URL and Job Status.

  3. Enter the Security information, if required. If your server is password protected, enter the Username and Password. Select the Authentication Type: None, Basic, or Digest; and Encryption Type: None or SSL.

  4. If the notification is to be sent through a proxy server, enter the fully qualified Host name, the Port, the Username and Password, and Authentication type of the proxy server.

11.7 Adding an FTP Server

Important:

If the destination file name supplied to the BI Publisher scheduler contains non-ascii characters, BI Publisher will use UTF-8 encoding to specify the file name to the destination FTP server. Your FTP server must support UTF-8 encoding or the job delivery will fail with "Delivery Failed" error message.

To add an FTP server:

  1. From the Administration page, under Delivery, click FTP to display the list of servers that have been added. Click Add Server.

  2. Enter the following fields for the FTP server:

    • Server Name - example: myFTPserver

    • Host - example: myhost.company.com

    • Port - example: 21

    • Create files with Part extension when copy is in process - select this box if you want BI Publisher to create the file on the FTP sever with a .part extension while the file is transferring. The .part extension indicates that the file transfer is not complete. When the file transfer is complete, the file is renamed without the .part extension. If the file transfer does not complete, the file with the .part extension remains on the server.

  3. Select the Use Secure FTP box to enable Secure FTP (SFTP)

  4. Enter a username and Password for the server if required.

11.8 Adding a Common UNIX Printing System (CUPS) Server

See Section 11.2, "Adding a Printer" for information about when you must configure CUPS.

To add a CUPS server:

  1. From the Admin page, select CUPS to display the list of servers that have been added. Select Add Server.

  2. Enter the Server Name and Host and Port for the CUPS server.