1 copyright © 2013, oracle and/or its affiliates. all rights … pdf reports.pdf · title: oracle...

20
1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Upload: donhan

Post on 13-Mar-2018

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

1 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Page 2: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

2 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Creating Custom PDF reports

with APEX 4.2.2

Marc Sewtz Senior Software Development Manager

Oracle USA Inc.

New York, NY

Page 3: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

3 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

The following is intended to outline our general product direction. It is

intended for information purposes only, and may not be incorporated

into any contract. It is not a commitment to deliver any material, code,

or functionality, and should not be relied upon in making purchasing

decisions. The development, release, and timing of any features or

functionality described for Oracle ’ s products remains at the sole

discretion of Oracle.

Page 4: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

4 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• Report Printing Options

• Configuring PDF Printing

• Creating and using a fully

customized report layout

• Q&A

Agenda

Page 5: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

5 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• Report Queries

– Report generation based on one or more query result sets

– Drag & Drop report design using Word Plug-In and XSL Tools

– Inclusion of data driven charts and images

• Interactive Reports

– Export of report data to PDF, Word, Excel, HTML and XML

• Classic Reports

– Easy report printing using customizable generic report layouts

– Full support for custom RTF and XSL-FO layouts

Report Printing Options Overview

Page 6: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

6 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Report Printing Options Oracle BI Publisher

• BI Publisher 10.1.3.2.1 or above (license required)

• APEX calls “convert” Servlet through utl_http

• Supports XSL-FO and RTF based templates

• Template design using MS Word Plug-In

• Output to PDF, Word, Excel, HTML and XML

Page 7: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

7 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Report Printing Options Apache FOP

• Included with APEX, requires OC4J

• APEX calls apex_fop.jsp through utl_http

• Supports XSL-FO based templates

• Template design using third party tools

• Output to PDF and XML

Page 8: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

8 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Report Printing Options APEX Listener

• APEX Listener 2.0.2 includes FOP support

• APEX generates report XML data with

XSL-FO style sheet in single document

• Listener intercepts file and renders PDF document

• PDF is then downloaded straight to browser

Page 9: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

9 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• PDF printing configured via instance administration

• BI Publisher and FOP option require configuration of

external URL, port and script

• APEX Listener option requires no further settings

Configuring PDF Printing

Page 10: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

10 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• PL/SQL print APIs:

– apex_util.get_print_document

– apex_util.download_print_document

• Requires networking services to be enabled in 11g

• Edit APEX Listener /apex/default.xml file, add:

<entry key="misc.enableOldFOP">true</entry>

Configuring PDF Printing

Page 11: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

11 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• Custom XSL-FO report layouts supported with

Classic Reports and Report Queries

• Export report in XML format or as XML schema

• Load XML into XSL Layout tool

• XML structure is used for drag & drop design

Creating a Fully Custom Report Layout

Page 12: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

12 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• Create new file from XML file

• Open exported XML report data

• Tool creates corresponding XML schema

• Create free-flow document

• Need to generate XSLT 1.0 compliant file

Creating a Fully Custom Report Layout Creating a report layout with Altova Stylevision

Page 13: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

13 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• Use elements from XML structure for drag & drop design

• XML structure provides access to:

– Application and Page Information

– Session State

– Report Data

• Save completed layout

as XSL-FO file

Creating a Fully Custom Report Layout Creating a report layout with Altova Stylevision

Page 14: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

14 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• Completed XSL-FO layout file can be uploaded back

into APEX as a Shared Component -> Report Layout

• Report Layouts can be used for Report Queries and

Classic Reports

• Interactive Reports currently do not support custom

report layouts but allow for PDF export using generic

layout

Creating a Fully Custom Report Layout Creating a report layout with Altova Stylevision

Page 15: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

15 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Demo Custom Report Layout

Page 16: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

16 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

• New PDF printing option available in APEX 4.2.2

using APEX Listener 2.0.2

• Build custom report layouts using third-party tools

• Key benefits:

– No separate external printing engine is required

– Using a supported Oracle product: APEX Listener

– Single step configuration as a print server for APEX

Creating Custom Report Layouts Summary

Page 17: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

17 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

my Blog:

http://marcsewtz.blogspot.com

Twitter

@msewtz #orclapex

Page 18: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

18 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Page 19: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

19 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.

Page 20: 1 Copyright © 2013, Oracle and/or its affiliates. All rights … PDF Reports.pdf · Title: Oracle Application Express 4.2 New Features Author: Joel R. Kallman Created Date: 6/4/2013

20 Copyright © 2013, Oracle and/or its affiliates. All rights

reserved.