开发者

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 ap开发者_如何学JAVAp = 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜