OxygeneBinderException

This code crashes and i can’t find out why…

var
WordApp: dynamic;
begin
try
WordApp := Marshal.GetActiveObject(‘Word.Application’);
except
WordApp := Activator.CreateInstance(&Type.GetTypeFromProgID(‘Word.Application’));
end;
WordApp.Quit; // OxygeneBinderException: No properties called “Quit” defined on "System.__ComObject"
WordApp.Quit(Missing.Value, Missing.Value, Missing.Value); // OxygeneBinderException: No methods called “Quit” defined on "System.__ComObject"
end;

I use Elements 8.2.89.1909.
I added RemObjects.Elements.Dynamic.dll to references.

Sounds like an ommision in the dynamic library (in regards to COM support). Any chance you can use the interfaces for word instead of dynamic?

Thanks, logged as bugs://74773

I currently use interfaces from Office 2010 but i have a bug when i execute my project on a machine with Office 2013 so now i try to be independant of an Office version.

Will this help? http://stackoverflow.com/questions/6431348/support-different-office-versions-with-office-automation (Specifically the PIA part of it)

bugs://74773 got closed with status fixed.

Logged as bugs://i62817.

bugs://i62817 was closed as fixed.