111,098
社区成员




string ImageFilePath = "c:\\imagefolder";
Document doc = new Document(ImageFilePath + "\\ImageFile.doc");
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true, false);
int imageIndex = 0;
foreach (Shape shape in shapes)
{
if (shape.HasImage)
{
String name = "DocumentImage" + "_" + imageIndex.ToString() + ".bmp";
shape.ImageData.Save(ImageFilePath +"\\"+ name);
imageIndex++;
}
}