الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكلة للمحترفين

مغلق
بدأه lo2lo2 في 15 ديسمبر 2003 · 2 رد · 779 مشاهدة · في قواعد بيانات Oracle
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

i have a big problem to convert oracle report to excel sheet plz tell me what can i do

#3
I found Sam solutions for you problem hope to help you   
Reports6 to Excel without leaving Browser!!

A way to convert Oracle Reports to Excel and display on browser without first creating a delimited file? It looks like there is no easy way but here an example of how to do it and how it works: 
The report data is displayed initially on the web, in our case in PDF format. An icon below the report data, acting as a URL, calls a procedure to extract the currently run data and display it automatically in the web browser as an Excel spreadsheet. This means that the User does not have to open a delimited file from Excel and do any imports of delimited data! Of course, this works best on reports that have a determined number of row/columns. However, there are workarounds for those reports that have varying rows but this should get you started. Follow the below procedures and Get the example: http://briefcase.yahoo.com/mr_neal folder="ORACLE-helpme" filename="Reports6 to Excel files" 

---- 
CREATE THE FOLLOWING TABLE... 
CREATE TABLE TABULAR_REPORT_OUTPUT 
(REPORT_ID NUMBER(10) NOT NULL 
,X NUMBER(4) NOT NULL 
,Y NUMBER(4) NOT NULL 
,VAL VARCHAR2(100) 
,SYLK_FORMAT_STRING VARCHAR2(100) 
,USERNAME VARCHAR2(30)NOT NULL 
); 
---- 
CREATE THE FOLLOWING PROCEDURE: 
CREATE OR REPLACE PROCEDURE generate_sylk_output(an_report_id NUMBER) 
This code is stored in the zip at location above. (c_excel_proc.sql) 
---- 
NOW FOR THE REPORT.... 
You must create all your work in a Before Report Trigger meaning that no queries will exist in the data model section. Only placeholder columns and totals/subtotal columns. Basically all the fields on the report will exist in the data model and you will assign their values as you process the PL/SQL. See example. 

---- 
AND FINALLY ADD A BOILERPLATE IMAGE TO THE REPORT (I copied the Excel Icon) 
After adding the image, Right click and select PL/SQL Editor and add the following as appropriate: 
function B_EXCEL1FormatTrigger return boolean is 
begin 
if(:p_report_id is NULL) then 
return(FALSE); 
else 
srw.set_hyperlink('/plsql/generate_sylk_output?an_report_id='||:p_report_id); 
return(TRUE); 
end if; 
end; 

That's it...

هذا الموضوع مغلق.

مواضيع مشابهة