Coder
Coder

Reputation: 101

Interop directly with office graphing component from c#

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.

Upvotes: 1

Views: 261

Answers (1)

Coder
Coder

Reputation: 101

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.

Upvotes: 1

Related Questions