Hi I'm able to use OO via reflection in VB.NET e.g. like this:
Dim OOServiceManager As Object = CreateObject("com.sun.star.ServiceManager")
Dim OODesktop As Object = OOServiceManager.createInstance("com.sun.star.frame.Desktop")
but I can't make it work in C# using dinamics e.g.
System.Type OOServiceManagerType = System.Type.GetTypeFromProgID("com.sun.star.ServiceManager", false);
dynamic OOServiceManager = Activator.CreateInstance(OOServiceManagerType);
dynamic OODoc = OOServiceManager.CreateInstance("com.sun.star.frame.Desktop"); <-- returns the method doesn't exixts!!!
is somebody else facing the same problem.
OpenOffice via Reflection VB CreateObject AND C# GetTypeFrom
-
- Messaggi: 5
- Iscritto il: venerdì 2 maggio 2014, 13:55
OpenOffice via Reflection VB CreateObject AND C# GetTypeFrom
OpenOffice 4.0.1 su Windows 7
Re: OpenOffice via Reflection VB CreateObject AND C# GetType
This is Italian Forum, not International Forum
-------------------
Libre Office 7.5.3.2 su Windows 11
allega un file di esempio, guadagnerai tempo tu e lo farai risparmiare a chi ti aiuta
Libre Office 7.5.3.2 su Windows 11
allega un file di esempio, guadagnerai tempo tu e lo farai risparmiare a chi ti aiuta