在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
在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
相关文章推荐
- 在word里指定书签的位置插入图片
- c#操作在word指定书签插入文字
- word根据模板给指定书签插入值
- c#操作word 在指定书签插入文字或者图片
- C# 操作word 指定书签位置插入图片并设置图片大小和位置
- c#操作word 在指定书签插入文字或者图片
- c#操作word 在指定书签插入文字或者图片(转)
- java2Word在Word文档指定位置插入图片或者文字
- C#操作Word文档(加密、解密、对应书签插入分页符)
- 操作Word对象----在指定位置插入图片并设置大小(原)
- 在Word指定位置插入富文本域值(html文本)
- js在PageOffice打开的Word文档光标处插入书签
- java在word(*.docx)指定地点插入图片
- aspose.word 在书签处插入符号
- 向word生成的xml中插入xml
- 黄聪:C# web word文档操作,任意指定位置插入图片,表格简单操作
- 操作Word对象----在指定位置插入图片并设置大小(原)
- 借助Word中的书签获取指定文本
- java生成word,通过xml方式,插入图片base64,linux/mac问题
- 操作Word对象----在指定位置插入图片并设置大小