Creating new WordApplication failing in Windows 11

I have an app that I have used for years that is now failing at this line of code

dim word as new WordApplication

App is built with Version 2018 release 4. I get the same problem with 2023 release 1.1.

The only thing that has changed as far as I know is that I updated to Windows 11 last month.

Does an error message appear?

No. I just remembered that I also changed to the 64-bit version of Office. I don’t know if that is an issue.

@Damien_Callaghan

I just tried on WIN 11 Xojo 2025R1 x64 (OS and Office) and was able to create a Word document with Xojo

Are you using drivers that are 32Bit only? Like Excel or Access drivers ← but I see you are only trying to use Word

Is the Xojo MSOfficeAutomation.rbx Plugin in the Plugins Folder?

If you have upgraded from 32 to 64bit Office, then there may still be registry settings that try to launch the 32 bit stuff when you make a call through OLE.
Or to launch the free viewer software.
I cant recall how to fix it, but check the registry for settings that point to stuff like Office11, Office12 and so on.
Delete the obsolete stuff.

Thanks. That set me on the right path. I had to rebuild the app for 64-bit.

Glad you figured it out :+1: