This content has been marked as final. Show 4 replies
Thanks, but I don't think it will resolve my issue. I'm using below in a loop
but it opens up thousands of IE windows
I just need to generate pdf files without opening any IE window.
I've managed to do this using webutil. Following is the code... This assumes that your report is running synchronously (i.e. REPORT_COMM_MODE = SYNCHRONOUS)
ReportServerJob := run_report_object(report_id);
rep_status := report_object_status(ReportServerJob);
IF rep_status = 'FINISHED' THEN
v_URLin := lc_report_servlet || 'getjobid=' || SUBSTR(ReportServerJob, INSTR(ReportServerJob, '_', -1) +1) || '?' || 'server=' || report_server_name;
-- This will copy the file from report server to c:\temp\
v_result:= WebUtil_File_Transfer.URL_To_Client_With_Progress(v_URLin,'c:\temp\test.pdf',0,'Download','Save','Saving Output File');
IF v_result = TRUE THEN
-- Then use open it up to the user
pid1 := webutil_host.nonblocking ( 'cmd.exe /C c:\temp\test.pdf' ) ;
You shouldn't use web.show_document, but run_report_object.
Web.show_document is only used to view the output of the report after the report is finished. If you don't want to view the output, but just leave the generated pdf files in the directory, don't call web.show_document after run_report_object.