2021
01-13
01-13
C# Aspose.Words 删除word中的图片操作
今天介绍下Aspose.Words对word中的图片进行删除stringtempFile=Application.StartupPath+"\\resource\\templete\\项目建议书模板.doc";Documentdoc=newDocument(tempFile);NodeCollectionshapes=doc.GetChildNodes(NodeType.Shape,true);foreach(Shapeiteminshapes){if(item.HasImage){item.Remove();}}doc.Save(docPath);补充:C#word插入图片在指定标签位置(附加图片上下左右移动)这一篇我就直接讲...
继续阅读 >