我有个word的参考实例,如下:
Word.Application wapp = new Word.ApplicationClass();
wapp.Visible = false;
Word.Document wdoc = wapp.Documents.Open(......);
wdoc.Activate();
for(int i = 1;i <= wdoc.InlineShapes.Count ; i++)
{
Word.InlineShape wshape = wdoc.InlineShapes;
//判断shape是否是visio图?
if(wshape.OLEFormat != null && wshape.OLEFormat.ClassType.ToLower().IndexOf("visio") > -1)
{
Word.OLEFormat ole = wshape.OLEFormat;
ole.Activate();
object ovisio = ole.Object;
.........
}
}
现在我想从Excel文件中读取visio图,该如何写呢?尝试了很多方式,在网上也没有找到相关资料。