Forum rules - please read before posting, it can save you a lot of time.
Actually I found a way to do this using a C# wrapper.