- Agapita Papio
- PowerBuilder
- Monday, 7 November 2022 10:04 AM UTC
Hi,
I successfully saved the datawindow to an Excel file but when I tried to open it using the code below, it shows this error. Does it something about the 64-bit Excel application installed in my PC? Can you please help me on this matter. Thank you.
integer result
OLEObject ole_object
ole_object = create OLEObject
string ls_reportInPath = "abcxyz.xls"
IF ole_object.ConnectToNewObject("Excel.application") = 0 THEN
ole_object.Object.Application.DisplayAlerts = "False"
ole_object.Workbooks.Open(""abcxyz.xls"")
Else
MessageBox('OLE Error','Unable to start an OLE server process!',Exclamation!)
END IF
ole_object.Application.Quit()
ole_object.DisconnectObject()
DESTROY ole_object
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.