Request printing, usually need to submit a request, and then view the output in the request interface, the print content is displayed on the browser
You can now print directly to the browser after invoking the request, with the following steps:
---Set up a request print template L_req_bool: = fnd_request.add_layout (template_appl_name = ' Cux ', Template_code = ' Cuxporeqprint ', template_language = ' en ', template_territory = ' CN ', Output_format = ' PDF '); --Submit Request L_REQ_ID: = Fnd_request.submit_request (' Cux ', ' cuxporeqprint ', &N Bsp , &NB Sp NULL, NULL, &NBSP ; FALSE, &NBSP ;  NVL (:p o_req _hdr.segment1, &NB Sp null); COMMIT;
--Wait for the request to complete
IF l_req_id is NULL OR l_req_id = 0 Then fnd_message.set_string (' Print submission failed '); fnd_message.show; RAISE form_trigger_failure; ELSE l_wait_bool: = Fnd_concurrent.wait_for_request (l_req_id, 1, 0, l_phase, l_status, l_dev_phase, l_dev_status, l_message); --Invoke the automatic printing function in the standard PLL file editor_pkg.report (l_req_id, ' Y '); END IF;To add a standard PLL file to a form: Fndconc
Call the request in the form and print the result directly