2 Replies Latest reply on Feb 17, 2017 10:50 AM by Jozef Demovic SVK

    APEX 5.1: Processing of APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT returns JSON instead of initialize download

    Jozef Demovic SVK

      Hi Experts,

       

      I use page processing where if some request is submitted report is printing.

       

      declare
          v_filename varchar2(1000); 
      begin
          v_filename := 'Order_'||:P4_ORDER_NR;
          APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => v_filename,
                                             p_content_disposition => 'attachment',
                                             p_application_id      => :APP_ID,
                                             p_report_query_name   => 'wh_order',
                                             p_report_layout_name  => 'wh_order_'||lower(:p4_company),
                                             p_report_layout_type  => 'rtf',
                                             p_document_format     => 'pdf');
      end;
      

       

      In APEX 5.1 processing returns PDF just like JSON object and not like downloadable file. It works fine in APEX 5.0. On this page is also used IG table.

       

      Is there some issue with it ?

       

      Regards

       

      J