如何在word中获取groupshapes并另存为? 现在我得到了Microsoft.Office.Interop.Word.GroupShapes,我接下来该怎么办?
object Nothing = System.Reflection.Missing.Value;
object filename = "D:admin.docx";
Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
Microsoft.Office.Interop.Word.Document WordDoc = WordApp.Documents.Open(ref filename, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);
WordApp.Visible = true;
int i = 1;
foreach (Microsoft.Office.Interop.Word.GroupShapes shape in WordDoc.Shapes)
{
}
WordDoc.Close(ref Nothing, ref Nothing, ref Nothing);
WordApp.Quit(ref Nothing, ref Nothing, ref Nothing);