【发布时间】:2020-12-26 04:19:27
【问题描述】:
我希望将报告或表格作为电子邮件中的附件发送,在 oracle apex 中我尝试过显示此错误
ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified. for Execute PL/SQL Code.
这里是代码
DECLARE
l_id number;
l_document BLOB;
BEGIN
l_document := apex_util.get_print_document (
p_application_id => 127,
p_report_query_name => 'CatpbReport',
p_report_layout_name => 'CatpbReport',
p_report_layout_type => 'XSL-FO',
p_document_format => 'pdf' );
l_id := APEX_MAIL.SEND(
p_to => 'xxxxxxxxxxx',
p_from => 'xxxxxxxxxxxx',
p_subj => 'sending PDF by using print API',
p_body => 'Please review the attachment.',
p_body_html => 'Please review the attachment');
APEX_MAIL.ADD_ATTACHMENT (
p_mail_id => l_id,
p_attachment => l_document,
p_filename => 'mydocument.pdf',
p_mime_type => 'application/pdf'
);
END;
我不知道为什么当我尝试使用它发送电子邮件的 SQL 命令时它对我不起作用,当我在动态操作中附加时它显示为错误。
【问题讨论】:
标签: email report oracle-apex