I'm using this code but getting no file on the browser.
The log even says Starting Download of "repot.csv"
DECLARE
l_export apex_data_export.t_export;
l_region_id number;
BEGIN
SELECT region_id into l_region_id
FROM apex_application_page_regions
WHERE application_id = 100
and page_id = 3
and static_id = 'classic_report';
l_export := apex_region.export_data (
p_format => apex_data_export.c_format_html,
p_page_id => 3,
p_region_id => l_region_id );
apex_data_export.download( l_export );
END;