Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF

Plus Créer un blog Connexion

Dimitri Gielis Blog (Oracle Application Express - APEX)


I created this Blog to share my knowledge especially in Oracle Application Express (APEX) and my feelings ...

TUESDAY, JUNE 07, 2016 My next public appearances:

Export your APEX Interactive Report to PDF UKOUG: 1/4-DEC-2019

Interactive Reports (and Grids in 5.1) are one of the nicest features of Oracle Application Express (APEX) as it
About Me
allows an end-user to look at the data the way they want, without needing a developer to change the
underlying code. End-users can show or hide columns, do calculations on columns, filter etc. Dimitri Gielis

Here's an example of an interactive report where highlighting, computation and aggregation is used.

Passionate about Oracle and especially


Oracle Application Express (APEX). Founder
of AOP and APEX R&D, a company that
provides Development, Training and
Consulting in APEX.

View my complete profile

Printing in Oracle APEX?

Check APEX Office Print.

More than once I get the question, how can I export this to PDF or print this Interactive Report?

Here're 3 ways of doing this:

1. Use your browser to Print to PDF

The challenge here's that you would need to add some specific CSS to get rid of the items you don't want to
be printed, e.g. the menu, the header and footer and some other components like buttons.
Also if you have many columns, they might not fit on the page and the highlighting is not working when
printed, but if you can live with that, it might be an option for you. Make your template in Word, Excel or
Powerpoint and print into Word, Excel,
Powerpoint, PDF or HTML5. One APEX
plugin, takes less than a minute to setup.

Need APEX consulting, training,


development, check out:

My e-book

Here's the CSS you can use:

@media print {

.t-Body-nav {
display:none

2. Use the download feature of the Interactive Report itself (Actions > Download > PDF)
Click on the book, leave your email and be
This feature is build-in APEX and relies on a print server supporting XSL-FO; when using ORDS it will the first one to know when it's published!

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 1/7
17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF
automatically work. If you're using Apache, you will need to configure a print server like BI Publisher or Twitter
Apache-FOP.
Follow @dgielis

Subscribe to this Blog

Subscribe in a reader

Subscribe by mail:
Subscribe

Blog Archive

► 2019 (27)
► 2018 (14)
► 2017 (22)
▼ 2016 (10)
► December (1)
When downloading to PDF, the result looks like this: ► October (1)
► August (2)
▼ June (2)
Enter your bets on
Euro2016Challenge.eu now
Export your APEX Interactive Report to
PDF

► May (2)
► April (1)
► January (1)

► 2015 (43)
► 2014 (28)
► 2013 (18)
► 2012 (49)
► 2011 (42)
► 2010 (93)
The PDF contains the data and we can specify a header, footer and how the columns look like, but we lost ► 2009 (85)
many features of the Interactive Report; no highlighting, no computation or aggregation.
► 2008 (122)
► 2007 (139)
► 2006 (99)
3. Use APEX Office Print to print the Interactive Report in your own template defined in MS Word.

One of the unique features of APEX Office Print is that it's tightly integrated with Oracle Application Express Popular Posts

and that it understands Interactive Reports as the source of your data.


Using Shuttles in a many-to-many
relationship (Form)
Here're the steps:
APEX 5.0: pimping the Login page
- Create your template in MS Word and add {&interactive} tag where you want the Interactive Report to be
Change default (first) page in APEX

Understanding the APEX url - passing


variables to items and (interactive)
reports

APEX and Font Awesome integration

APEX 4.0: Dynamic Actions - Part 2

APEX by Example - Default value of


Shuttle

Export your APEX Interactive Report to


PDF

Create a Custom Authentication and


Authorization Scheme in Oracle APEX

Quest Toad on Oracle 11g not supported

Followers

Abonnés (452) Suiv.

- Give your Interactive Report a static id:

S'abonner

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 2/7
17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF
Translate

Sélectionner une langue


Fourni par Traduction

- Add the APEX Office Print Process Plugin to your page and specify the template and the static id:

And here's the result:

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 3/7
17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF
I'm biased as we created APEX Office Print (AOP), but I just find it awesome :)
In your Word template you just add one tag, that's it!

In all seriousness, we would really want to hear from you if this feature works for your Interactive Report. You
can try AOP for free for 100 days. We're trying to be smart and are doing automatic calculations of the
column width, but we probably can improve it even more. We introduced this feature with AOP v2.0 (MAR-16)
and improved it in v2.1 (MAY-16).

Posted by Dimitri Gielis at 17:36

15 comments:

raj sai said...

Thanks for Information.

I have a question in this topic: Does APEX have a limit column for PDF files?
For suppose if i have more than 10 columns in pdf report , report shows error message.
Some times data looks merged with other columns it is not showing properly.
But in crystal reports, it is showing good.

6/16/2016 3:03 AM
Dimitri Gielis said...

Hi Raj sai,

Which option did you go with to produce your PDF and in which you have issues?
The standard APEX PDF export?

Thanks,
Dimitri

6/17/2016 11:05 PM
Shubhadeep Chandra said...

Hi Dimitri,

I have a interactive report having more than 40 column and it errors out but when i change to
10 columns or so its works fine.

In the manage instance setting for PDF printing its currently setup as " APEX Listener".

Can you please share you feedback?

Thanks
Shubhadeep

8/29/2016 1:09 PM
Shubhadeep Chandra said...

Hi Dimitri,

I am too facing the same situation if i try printing a IR in PDF having more than 40 columns
errors out in PDF but CSV/HTML works fine.

Current settings in Manage Instance Settings in Admin is set to "APEX Listener" for PDF printing
to enable PDF priting.

Can you please confirm?

Thanks
Shubhadeep

8/29/2016 1:13 PM
praveen chaudhary said...

Hi Dimitri,

Please suggest on this .


Is this a APEX limitation .
I am unable to download PDF reports which are having more that 25 columns

9/29/2016 3:29 PM
Dimitri Gielis said...

Hi Praveen,

It looks like APEX default reporting has a limit.


APEX Office Print should work fine with more columns.

Hope that helps,


Dimitri

9/29/2016 3:34 PM
praveen chaudhary said...

Hi Dimitri,

One more question I want to add my company logo in header of PDF downloaded file . How can
I achieve this?
Please specify Steps in detail . It one of my urgent requirement.

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 4/7
17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF
I am a newbie.. :(

Thank you

10/25/2016 4:06 PM
Dimitri Gielis said...

Hi Praveen,

You mean with APEX Office Print?


You would include your logo in your Word or Excel template.

Hope that helps,


Dimitri

10/25/2016 5:16 PM
praveen chaudhary said...

Hi Dimitri,

Will APEX Office Print will customize the PDF report layout?

10/26/2016 7:39 AM
Peter Ettinger said...
This comment has been removed by the author.
10/27/2016 4:39 PM
Peter Ettinger said...

Hi Dimitri,

i try to print pdf using ords.3.0.6.176.08.46 running in apache tomcat. but all generated pdfs
contain only one string :String index out of range
Any idea what i miss in the configuration of tomcat and/or the apex instance?

10/27/2016 4:41 PM
Trevis said...

Hey Dimitri,

I've tried to look into it but I got an error when I ran install.sql:

SQL> @install.sql

Package created.

Warning: Package Body created with compilation errors.

Package created.

Package body created.

Table created.

Table created.

Table created.

Trigger created.

Trigger created.

Trigger created.

1 row created.

1 row created.

1 row created.

Commit complete.

1 row created.

1 row created.

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 5/7
17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF
1 row created.

1 row created.

1 row created.

Commit complete.

5 rows updated.

Commit complete.

( "ID" NUMBER GENERATED ALWAYS AS IDENTITY MINVALUE 1 MAXVALUE


9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER
NOCYCLE NOT NULL ENABLE,
*
ERROR at line 2:
ORA-02000: missing ( keyword

on aop_user_test for each row begin


*
ERROR at line 3:
ORA-00942: table or view does not exist

Package created.

Package body created.

Package created.

Package body created.

Session altered.

Warning: Package altered with compilation errors.

Package altered.

SQL>

2/10/2017 6:40 AM
Trevis said...

Ah, after fixing some grants on utl_http I still get error :-(

Error while generating file. Please contact AOP for further inquiry.

2/10/2017 6:46 AM
Dimitri Gielis said...

Hi Trevis,

We used a feature of 12c (GENERATED ALWAYS AS IDENTITY) in our script to create a table in
AOP v2.4.
This has already been fixed in AOP v2.5. The table in itself is only used by one page in the
sample app and not really necessary.

If you enable remote support (Shared Component > Component Settings > APEX Office Print)
and hit the sent to Support button, we are happy to help or you can contact support@ directly
too.

Thanks,
Dimitri

2/10/2017 9:25 AM
Ashish said...

I am trying to use the print to csv/pdf option on an IR in APEX 5, and the IR is on a modal
window, however when I click on Download CSV/PDF, it downloads the corresponding CSV/PDF
and also tries to reload the same modal page in a new window which is an issue. Can you
please suggest?

Thanks in advance!

12/12/2017 8:06 PM

Post a Comment

Links to this post

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 6/7
17/11/2019 Dimitri Gielis Blog (Oracle Application Express - APEX): Export your APEX Interactive Report to PDF
Create a Link

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Copyright © 2006 Dimitri Gielis (APEX Blog), All rights reserved.

dgielis.blogspot.com/2016/06/export-your-apex-interactive-report-to.html 7/7

You might also like