私は Visio と c# を使用していますが、Visio の形状に問題があります。
文字列と Visio 図形を含む辞書を提供します
SortedDictionary<string, Visio.Shape> DicShapes
= new SortedDictionary<string, Visio.Shape>();
DicShapes.Add("Pos3", shape_Pos3);
したがって、Visio.Shape を使用しようとすると、COMExeption が発生します。
foreach (KeyValuePair<string, Visio.Shape> kvp2 in DicShapes)
{
if (kvp2.Key == "Pos3")
{
beginXCell.GlueToPos(kvp2.Value, 0.5, 1);
}
}
誰が私が間違っているのかヒントを教えてもらえますか?