Skip to Main Content

APEX

APEX emails empty report (pdf) as attachment

newjackDec 16 2019 — edited Dec 16 2019

I have attempted to email a pdf report (shared components BI Publisher rtf template) as an attachment. The email is generated but a blank pdf is attached that cannot be opened. When trying to open document, the popup says the file type is wrong or corrupted. My APEX process calls the 3 below procedures to attach the report.

APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT...  (also tried APEX_UTIL.GET_PRINT_DOCUMENT)

APEX_MAIL.SEND...

APEX_MAIL.ADD_ATTACHMENT...

I don't have much experience with the apex_uitl print procedures. Any thoughts of why the pdf is failing?

This post has been answered by Mike Kutz on Dec 16 2019
Jump to Answer
Comments
Post Details
Added on Dec 16 2019
2 comments
125 views