Hi there:
My client application creates an excel file (using COPY TO (filename) TYPE XL5) then uses automation to do some reformatting.
This has always worked fine but, since upgrading to Excel 2007, the client now sees this error when VFP (version 7) attempts the automation:-
OLE Error Code 0x80010105: The server threw an exception
Here is the beginning of my automation code:-
oXL=CREATEOBJECT("Excel.Application")
oXL.displayalerts=.F.
oWB=oXL.Workbooks.add(filename)
oModel=oXL.Activesheet
oSheet=oModel
oSheet.Name="New Name"
But it doesn't get this far as the excel file has not had the worksheet name changed.
Any ideas people please?
My client application creates an excel file (using COPY TO (filename) TYPE XL5) then uses automation to do some reformatting.
This has always worked fine but, since upgrading to Excel 2007, the client now sees this error when VFP (version 7) attempts the automation:-
OLE Error Code 0x80010105: The server threw an exception
Here is the beginning of my automation code:-
oXL=CREATEOBJECT("Excel.Application")
oXL.displayalerts=.F.
oWB=oXL.Workbooks.add(filename)
oModel=oXL.Activesheet
oSheet=oModel
oSheet.Name="New Name"
But it doesn't get this far as the excel file has not had the worksheet name changed.
Any ideas people please?