Oracle report in excell 11gr2

chalie001
chalie001 used Ask the Experts™
on
Hi I have report in 11g I what the data to display in excell format with heading I did use delimateddata it's showing data in html
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
SujithData Architect

Commented:
what tool are you using for preparing the report?

what do you mean by "I did use delimateddata it's showing data in html"

Author

Commented:
am using oracle report this my code

Procedure SUBMIT_PRINT
  pl_id              ParamList;
  v_repid            REPORT_OBJECT; 
  rep_status         varchar2(50);
  vc_rep_status      VARCHAR2(100);
  vc_reportserverjob varchar(100);
  vjob_id            varchar2(100);
 
BEGIN
	
	Tool_Env.Getvar('REPORTS_SERVERNAME', :parameter.RP2RROREPORTSERVER);
	Tool_Env.Getvar('REPORTS_HOST', :parameter.REPORTHOST);
	Tool_Env.Getvar('REPORTS_PORT', :parameter.REPORTPORT);
	
;
	
  pl_id   := Get_Parameter_List('reportname');
  v_repid := find_report_object('reportname');
 
  IF Id_Null(pl_id) THEN
    pl_id := Create_parameter_list('reportname');
  END IF;
 
 --message('orientation');
  Add_parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
  Add_parameter(pl_id, 'ORIENTATION', TEXT_PARAMETER, 'LANDSCAPE');
 
  IF v_repid.id IS NOT NULL THEN
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_OTHER, 'EXPIRATION=1'||' '||'MODE=CHARACTER DESFORMAT=wide180');
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'delimiteddata');
    
    	message('port2 '||:parameter.REPORTPORT);
       set_report_object_property(v_repid,report_filename, '/usr2/reportname.rdf');
    SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_SERVER,:parameter.RP2RROREPORTSERVER);
    
    	message('port4 '||:parameter.REPORTPORT);                           
 
    vc_reportserverjob := RUN_REPORT_OBJECT(v_repid, pl_id);
    vjob_id            := substr(vc_reportserverjob,
                                 instr(vc_reportserverjob, '_', -1) + 1);
    vc_rep_status      := REPORT_OBJECT_STATUS(vc_reportserverjob);
 
    WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') LOOP
      rep_status := report_object_status(vc_reportserverjob);
    END LOOP;
    
    	message('server1 '||:parameter.RP2RROREPORTSERVER);
	message('host2'||:parameter.REPORTHOST);
	message('port3 '||:parameter.REPORTPORT);
    
    WEB.SHOW_DOCUMENT('http://' || :parameter.REPORTHOST || ':' || :parameter.REPORTPORT || '/reports/rwservlet/getjobid' ||vjob_id || '?server=' || :parameter.RP2RROREPORTSERVER,'_blank');
    Destroy_parameter_list(pl_id);
  ELSE
    message('Report ID is null');
  END IF;
END;

Open in new window


i attache the sample am geting
reportexcell.jpg
Mark GeerlingsDatabase Administrator
Commented:
You likely need a different parameter on this line, instead of 'delimiteddata':
SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'delimiteddata');

But, I don't have a copy of Reports11 to check what the other valid values are for this parameter.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
i use both delimiteddata and delimited not working
Mark GeerlingsDatabase Administrator
Commented:
Try: 'SPREADSHEET '

Author

Commented:
like SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'SPREADSHEET');
Mark GeerlingsDatabase Administrator

Commented:
Yes.  I don't have Reports 11, but according to the Reports10 documentation that I have, that value is legal for REPORT_DESFORMAT.

Author

Commented:
Am geting REP-52251
Mark GeerlingsDatabase Administrator

Commented:
Do you get some error text along with that error number?  I don't see that error number in the Reports10 documentation that I have.

Author

Commented:
the error was report server but the excell is not formated
formated
Mark GeerlingsDatabase Administrator

Commented:
Yes, I know that the REP-52251 error is from Reports server.  But, did it not give you any error message text along with that error number?  I expect that error text may help you understand why Reports was not able to format the output the way you hoped.

But, when I look at the output that you posted in the screen shot, the data appears to be delimited into columns with the "|" character  between each column value.  Excel should be able to open a file like that if you use the Text Import Wizard in Excel and give it the "|" character as the delimiter.

Author

Commented:
I don't what to use text editor it must be in excell in correct format
Database Administrator
Commented:
It looks to me like it is in the correct format (or at least in a format that Excel can handle).  You just have to help Excel open it.  No text editor is needed.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial