Julie,
You should check the return values from things like Open() to see if it acuatlly did open the file. You may have a filename or pathing error. You can use the VFP FILE() function to check for the file existence before trying to open it.
>I have an application just delivered to a client -- it works fine on my workstations but not on his <g>. VFP 5.0, Win 95 & MS Office 97 are being used.
>
>The app writes VFP data to an Excel spreadsheet. The code is as follows:
>
>oleExcel = CREATEOBJECT("Excel.application") && Create Excel session
>oleExcel.application.workbooks.open("C:\dip\master.xls") && open template
>oleExcel.application.worksheets("PA").activate &&active worksheet
>...begin writing data.
>
>I believe the Excel session is started, because when CTRL-ALT-DEL are pressed, Excel appears in the list of apps running. Somewhere just after Excel is opened, the application hangs & errors: "Unknown OLE Error: Ole error code 0x800A03EC"
>
>Is there some basic thing I need to do to use OLE on a workstation? I'm not using any ActiveX controls (or am I?). Some kind of configuration problem somewhere? ANY thoughts, clues, troubleshooting ideas welcome.