-
Praburaj KarthiKeyan
- PowerBuilder
- Sunday, 9 August 2026 08:55 AM UTC
Hi All,
I am facing an issue with a PowerBuilder 2019 R2 Build 2323 application at the client site.The application is a 32-bit PowerBuilder application, while the client has Microsoft Office 365 (64-bit) installed.The application uses OLE Automation to open an Excel file (.xls) as shown below:
// Create a local OLE object
Ole_object = Create oleobject
// Connect the OLE object to Excel
If ole_object.ConnectToNewObject("excel.application") <> 0 Then
of_Messagebox("OLE Error", "Could not connect to Excel. Please ensure EXCEL is installed on your system.")
Goto CleanUp
End If
// Open the spreadsheet
ole_object.workbooks.open(ls_filename)
This code had been working without any issues at the client location for a long time.
However, after a recent Microsoft Office 365 update, the application started crashing at the following line : ole_object.workbooks.open(ls_filename)
We have already tried modifying the Excel Trust Center settings (File > Options > Trust Center > Trust Center Settings), but the evil issue still persists on the client PC.
Additional observations:
The client machine is running Microsoft Office 365 (64-bit).
Even before the recent Office update, the client was using the same 64-bit Office version and the application was working correctly.
The issue started only after the latest Office update.
On my machine, the application works correctly with the same Office 365 version, but my Office installation is 32-bit.Could anyone please advise if there are any known compatibility issues, security changes, or Office settings introduced by the latest update that could cause workbooks.open() to crash in a 32-bit PowerBuilder application interacting with 64-bit Excel? The crash occurs only on the client machine after the latest Office update.
At this point, I am completely blocked and unable to proceed further. Has anyone encountered a similar issue after recent Office 365 updates, or is there any known compatibility/security change that could impact OLE Automation when opening Excel workbooks?
Any suggestions or guidance would be greatly appreciated.
Thanks,
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.