doc = app.Documents.Add(fileInfo[i].FullName);
Vis.Shapes shapes = doc.Pages[1].Shapes;
for (int j = 1; j <= shapes.Count; j++)
{
if (shapes[j].Text.StartsWith("getSomeThing"))
{
shapes[j].Text = "doSomething()";
}
}
形状[j].Text = "doSomething()"; 这条线会导致异常,如何解决?
它会导致COMException。
异常消息是“请求的操作已禁用”。
错误代码 = -2032465766