您的位置:首页 > 其它

在Word转成的XML指定书签中插入图像

2009-09-28 23:32 239 查看
在Word转成的XML指定书签中插入图像
在XML中图像的格式如下
其中图像以 ToBase64String 编码存在

Code
//在XML格式的Word指定书签中插入图像
string ImgPath = Application.StartupPath + "\\custom.jpg";
string OldXmlPath = Application.StartupPath + "\\template.xml";
string XmlPath = Application.StartupPath + "\\word.xml";
File.Delete(XmlPath);
File.Copy(OldXmlPath, XmlPath);

HoYaiWordXml.XmlEdit xmledit = new HoYaiWordXml.XmlEdit();
xmledit.InsertImage(ImgPath, XmlPath, "BM_IMG");
http://files.cnblogs.com/4color/HoYaiWordXml.dll.zip
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: