Solved

Read from Excel into Oracle Forms on the web

Posted on 2003-10-31
5
655 Views
Last Modified: 2013-12-12
Hi, earlier on this weekend I was askign about how to read from an Excel Spreadsheet into an Oracle Forms 6i application. I figured it out, but now I am having problems when the application is on the web server. Excel is located locally on my hardrive, but the app can't open Excel from the web server, any ideas?  This is how I open excel:

application := OLE2.CREATE_OBJ('Excel.Application'); --opens blank excel app
      --ole2.set_property(application,'Visible','true');
      ole2.set_property(application,'Visible', 1 );

      workbooks := OLE2.GET_OBJ_PROPERTY(application, 'Workbooks'); --opens excel workbook
      args := OLE2.CREATE_ARGLIST;
ole2.add_arg(args,'c:\test.xls');

workbook := ole2.GET_OBJ_PROPERTY(workbooks,'Open',args); -- opens test.xls workbook
ole2.destroy_arglist(args); --destroy current argument list
args := OLE2.CREATE_ARGLIST; --creat new list
ole2.add_arg(args,1);
worksheet := ole2.GET_OBJ_PROPERTY(workbook,'Worksheets',args);
ole2.destroy_arglist(args);

Any ideas?
Do I have to convert the excel file to a OWC.spreadsheet? How do I do that?
0
Comment
Question by:russelltp
  • 3
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
Helena Marková earned 25 total points
ID: 9669076
This document can help you:
http://otn.oracle.com/products/forms/pdf/ClientSideOLE.pdf

The registration on OTN is free.
0
 

Author Comment

by:russelltp
ID: 9671011
Is this document saying that you cannot add OLE integration code to web deployed applications unless you used Java coding?  
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 9676496
0
 

Author Comment

by:russelltp
ID: 9678386
Ok, now we are getting somewhere. WebUtil would the be perfect method, however, I am using Forms6i right now, with possibility of converting to 9i after the project is deployed. Maybe I could use Java Beans for now and then maybe switch over to web util to simplify things later?
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 9684709
I think that you can do it.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now