We are exporting data to Excel from Net Express 5.1, calling Excel in the way below:
$set ooctrl( P)
class-control.
MSExcel is class "$OLE$Excel.Application".
:
*> Create a new instance of Microsoft Excel
invoke MSExcel "new" returning ExcelObject
Up till Windows 7 this has worked fine, in Windows 8 it don't work any longer.
We receive error message from "cblxecwm" saying "Load error: file 'C:\\Program' not found
This i probably because the registry CLSID for Excel in Win7 is: C:\\PROGRA~2\\MICROS~1\\Office12\\EXCEL.EXE /automation ("short" path)
While in Win8 it is: C:\\Program Files (x86)\\Microsoft Office\\Office12\\EXCEL.EXE /automation ("long" path, with spaces)
Looks like the call to Excel-class is cut off at the first space - any suggestions of how to solve this (without rewriting everything)?
(For a test we tried to add " around registry path in Win8, but that did not change anything)
#netexpress



