How to call Microsoft Excel from Oracle Reports/Forms 6i
plz tell me the step by step process how can we do it
my e-mailid is lightmobeen@yahoo.com
if any one know the process plz send me mail sonsist of code,me very thankful to u for this
Looking for relevant Oracle Whitepapers? Visit the SearchOracle.com Research Library.
Exporacle
20 pts. | Nov 27 2008 8:46AM GMT
thanks a lot for this
DDE is only open EXE file or specific file
but my problem is that to open when i call report through parameter output will be generated into excel form.give me this answer
Carlosdl
21920 pts. | Nov 27 2008 4:30PM GMT
I have never generated XLS files, but I’m almost sure it can be done with the help of some library.
How about generating a CSV file, and open it with excel ? will that work for you ?
Using the TEXT_IO package you could write your program output to a file (csv), and after that, you could call Excel to open it, as described above.
For example:
Declare
myCSV text_io.file_type;
app PLS_INTEGER;
Begin
myCSV := text_io.fopen(’c:test.csv’,'w’);
text_io.put_line(myCSV,’test1,test2,test3′);
text_io.fclose(myCSV);
app := dde.app_begin(’C:Program FilesMicrosoft OfficeOffice12EXCEL.EXE c:test.csv’,dde.App_Mode_Maximized);
end;
Some exception handlers need to be added…
Carlosdl
21920 pts. | Nov 27 2008 4:32PM GMT
Trying to post again, as it seems the editor removed the backslashes.
declare myCSV text_io.file_type; app PLS_INTEGER; Begin myCSV := text_io.fopen(’c:test.csv’,'w’); text_io.put_line(myCSV,’test1,test2,test3′); text_io.fclose(myCSV); app := dde.app_begin(’C:Program FilesMicrosoft OfficeOffice12EXCEL.EXE c:test.csv’,dde.App_Mode_Maximized); end;