Question about TatOle2Library

Tell me, please, how to work with the library TatOle2Library, and specifically with IEnumVariant.

In the method TatOle2Library.__IEnumVariantNext, to call Next, the object is converted to a class Winapi.Ole2.IEnumVariant, but method _NewEnum returns an interface ActiveX.IEnumVariant ... ?

Ole2 library can't be used from scripter. But COM objects and IDispatch interfaces are automatically supported, are you trying to use a COM object? Have you checked the demo projects in scripter about interacting with word, excel, and xmldom?