title: How to run oracle 12c report in excel
body: <p>want to run oracle 12 c report in excel</p>
  
  <p>i want to run oracle 12 c report to excel,but not finding the way,i have posted code below please help me</p>
  
  <pre><code>
  Declare
     pl_id paramlist;
     v_rep_server varchar2(100);
   v_path varchar2(100);
  
   v_rep varchar2(100);
  
  begin
  
   v_rep := 'SAMPLE_DETAIL_f.rdf';
  
   v_rep_server := pckg_erp.f_get_report_server_name(NULL,'192.168.0.231',null,null,null);
   v_path := pckg_erp.f_get_object_path(NULL ,v_rep,'R',null,35,'192.168.0.231',null,null,null); 
  
   WEB_REPORT.SETREPORTSSERVER(v_rep_server);
     WEB_REPORT.setDesformat('xls');
  
     pl_id:=get_parameter_list('temp');
  
     if not id_null(pl_id) then
         destroy_parameter_list(pl_id);
     end if;
  
     pl_id := Create_Parameter_List('temp'); 
  
     add_parameter(pl_id,'PARAMFORM',text_parameter,'NO');
     add_parameter (pl_id,'DESTYPE',TEXT_PARAMETER,'LOCALFILE');
     add_parameter (pl_id,'DESFORMAT',TEXT_PARAMETER,'ENHANSEDSPREADSHEET');
     add_parameter(pl_id,'MAXIMIZE',text_parameter,'YES');   
  WEB_REPORT.RUN_REPORT(reports,v_path||v_rep,synchronous,runtime,filesystem,pl_id,null);
  
  end;
  
  </code></pre>