In Addition, if you have large data set to export in excel, better use ENHANCEDSPREADSHEET instead of SPREADSHEET
because SPREADSHEET has limitation
For your info
Try forcing a mimetype to be passed.
Declare mimetypeExcel varchar2(50) := '&mimetype=application/vnd.ms-excel'; ... Begin ... SYNCHRONIZE; Web.Show_Document(konstanter.webrepurl||'/getjobid'||substr(v_rep_rtn, INSTR(v_rep_rtn,'_',-1) +1)||'?server='||'<servername> || mimetypeExcel,'_blank');
Obviously, you likely would want to turn the addition of the mimetype as an IF/THEN statement dependent on what DESTYPE is. But this should give you an idea of how to do this.