I'm a begginer in OOo api so if anybody can help me with my problem please do so.
I want to compare 2 documents in Writer using C# code and the OOo api. If someone can post the code on how to do this pls help (or can suggest a place where I could read about this - the OOo documentation is using java and I am a C# user

Thanks in advance!
I've been working on this task and this is what I have so far:
//Get a ComponentContext
xLocalContext = uno.util.Bootstrap.bootstrap();
//Get MultiServiceFactory
unoidl.com.sun.star.lang.XMultiServiceFactory xRemoteFactory =
(unoidl.com.sun.star.lang.XMultiServiceFactory)xLocalContext.getServiceManager();
//Get a ComponentLoader
aLoader = (XComponentLoader)xRemoteFactory.createInstance("com.sun.star.frame.Desktop");
XDesktop desktop = (XDesktop)xRemoteFactory.createInstance("com.sun.star.frame.Desktop");
unoidl.com.sun.star.beans.PropertyValue[] Args = new unoidl.com.sun.star.beans.PropertyValue[1];
XComponent Document1 = aLoader.loadComponentFromURL(@"file:///C:/copy of temp.doc", "_blank", 0, Args);
unoidl.com.sun.star.frame.XFrame Frame = desktop.getCurrentFrame();
//Create the Dispatcher
unoidl.com.sun.star.frame.XDispatchHelper Dispatcher = (XDispatchHelper)xRemoteFactory.createInstance("com.sun.star.frame.DispatchHelper");
unoidl.com.sun.star.beans.PropertyValue[] propertyValue = new unoidl.com.sun.star.beans.PropertyValue[3];
propertyValue[0] = new unoidl.com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "ShowTrackedChanges";
propertyValue[0].Value = new uno.Any(typeof(Boolean), true);
Dispatcher.executeDispatch((XDispatchProvider)Frame, ".uno:ShowTrackedChanges", "", 0, propertyValue);
unoidl.com.sun.star.beans.PropertyValue[] propertyValueFile = new unoidl.com.sun.star.beans.PropertyValue[1];
propertyValueFile[0] = new unoidl.com.sun.star.beans.PropertyValue();
propertyValueFile[0].Name = "URL";
propertyValueFile[0].Value = new uno.Any(@"file:///C:/temp.doc");
Dispatcher.executeDispatch((XDispatchProvider)Frame, ".uno:CompareDocuments", "", 0, propertyValueFile);
//save the document
SaveToDisk(@"C:\copy of temp.doc", @"C:\tempmod.doc", SaveFormatTypeEnum.doc, Document1);
This code is working ok, but if i want to make this without the OOo UI, it doesn't work.
I make the UI invisible using this:
unoidl.com.sun.star.beans.PropertyValue[] Args = new unoidl.com.sun.star.beans.PropertyValue[1];
Args[0] = new PropertyValue();
Args[0].Name = "Hidden";
Args[0].Value.setValue(typeof(Boolean), true);
XComponent Document1 = aLoader.loadComponentFromURL(@"file:///C:/copy of temp.doc", "_blank", 0, Args);
I think that the dispatcher is related to the UI or something like that... I don't know.
If somebody can show me how can I make this work, please help!
If I find anything new I'll edit my post.