views:

33

answers:

1

I am working with a legacy application that uses the office graph.exe ( C:\Program Files\Microsoft Office\Office14\graph.exe )

I add a reference to the graph.exe component in my c# project and when I try to initialize the component I use:

using Microsoft.Office;

Interop.Graph.GlobalClass c = new .Interop.Graph.GlobalClass();

Interop.Graph.Application app = c.Application;

This does not work and the app seems to reference a null object and can not be used.

Can anyone help me with how to create and initialize the component?

Thanks.

+1  A: 

The answer is that interoping with microsoft office graph.exe (f.e. C:\Program Files\Microsoft Office\Office14\graph.exe) does not work on certain international cultures, it works for example for the "en-us" culture but not for the "is-is" culture.

Coder