Skip to Main Content
  • Questions
  • How can I print a logo on a report as part of "Download" functionality?

Breadcrumb

May 4th

Question and Answer

Chris Saxon

Thanks for the question, Mark.

Asked: March 16, 2023 - 1:34 pm UTC

Last updated: March 31, 2023 - 5:05 pm UTC

Version: 22.2.0

Viewed 10K+ times! This question is

You Asked

We are using APEX 22.2.0.

I have an interactive report on a page. I have added a logo to the page. I want the logo to display on the report when the user selects the "Download" option from the Actions menu. How can I get the logo to download with the rest of the report?

and Chris said...

The download option is for the contents of the report itself. I'm guessing the logo appears elsewhere on the page.

There are more advanced options defining report downloads, as discussed here:

https://blogs.oracle.com/apex/post/exploring-report-printing-in-apex-202

I'm not sure if the cover adding images though.

Rating

  (5 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Mark J Matson, March 23, 2023 - 3:12 pm UTC

Chris,

You are correct that my logo appears on the header of the page. Is there a way that I can generate my logo into the header of the report such that it will appear in the downloaded version of the report?

jesse, March 23, 2023 - 10:04 pm UTC

Follow these procedures to add a logo to a report when downloading it in APEX 22.2:

In your APEX application, save the logo as a static file.

Go to the "Actions" option after editing the Interactive Report area.

Choose "Download" from the list of available actions.

Go down to the "Appearance" area in the "Download Settings" window.

Add the following code to the "Pre-header HTML" section:

<img src="f?p=&APP_ID.:YOUR_LOGO_FILE" style="float:left; margin-right:10px;" />


"YOUR LOGO FILE" should be replaced with the name of the file you submitted in step 1.

The logo picture will be added to the left side of the downloaded report using this code.

To preserve the modifications to the Interactive Report area, click "Apply Changes."

When the user picks the "Download" option from the Actions menu, the report with the logo is downloaded.
Chris Saxon
March 24, 2023 - 11:05 am UTC

Thanks for sharing!

Mark Matson, March 24, 2023 - 5:56 pm UTC

I am unable to upload images, so I will try to describe what I see. I open the APEX developer tool and open the page with the interactive report. I click on the interactive report region. On the right, I have 3 options:
Region
Attributes
Printing

I click on "Attributes". I scroll down to the "Actions Menu" section and I see that "Download" is selected. I scroll down further to the "Download" section, but I don't see an option for "Appearance" or "Pre-header HTML". What am I missing?
Chris Saxon
March 28, 2023 - 2:21 pm UTC

I'm also unable to see this - perhaps jesse can give more details

Mark J Matson, March 29, 2023 - 3:52 pm UTC

Jesse, can you please provide more details?

Mark J Matson, March 31, 2023 - 1:57 pm UTC

I'm anxiously awaiting an update.
Chris Saxon
March 31, 2023 - 5:05 pm UTC

If you're desperate, try asking on the APEX community forums: https://forums.oracle.com/ords/apexds/domain/dev-community/category/apex

More to Explore

APEX

Keep your APEX skills fresh by attending their regular Office Hours sessions.