var oWordApp = new ActiveXObject("Word.Application");
oWordApp.Visible = true;
oWordApp.Documents.Open(CLDJUrl + 'moban.doc').Bookmarks("shqian").Range.InsertBefore(Value);
现在求高人告诉怎么根据标签穿图片啊!!在线等啊急死了妈蛋的。
2 个解决方案
#1
妈蛋老子写出来了。。。。
var CLDJUrl = localhostPaht + "/站点"
var oWordApp = new ActiveXObject("Word.Application");
oWordApp.Visible = true;
var oDocument = oWordApp.Documents.Open(CLDJUrl + 'moban.doc');
if (oDocument.Bookmarks.Exists("书签")) {
var url2 = CLDJUrl+"/images/图片.png";
oDocument.Bookmarks("书签").Range.InlineShapes.AddPicture(url2);
}
var CLDJUrl = localhostPaht + "/站点"
var oWordApp = new ActiveXObject("Word.Application");
oWordApp.Visible = true;
var oDocument = oWordApp.Documents.Open(CLDJUrl + 'moban.doc');
if (oDocument.Bookmarks.Exists("书签")) {
var url2 = CLDJUrl+"/images/图片.png";
oDocument.Bookmarks("书签").Range.InlineShapes.AddPicture(url2);
}
#2
很nice
#1
妈蛋老子写出来了。。。。
var CLDJUrl = localhostPaht + "/站点"
var oWordApp = new ActiveXObject("Word.Application");
oWordApp.Visible = true;
var oDocument = oWordApp.Documents.Open(CLDJUrl + 'moban.doc');
if (oDocument.Bookmarks.Exists("书签")) {
var url2 = CLDJUrl+"/images/图片.png";
oDocument.Bookmarks("书签").Range.InlineShapes.AddPicture(url2);
}
var CLDJUrl = localhostPaht + "/站点"
var oWordApp = new ActiveXObject("Word.Application");
oWordApp.Visible = true;
var oDocument = oWordApp.Documents.Open(CLDJUrl + 'moban.doc');
if (oDocument.Bookmarks.Exists("书签")) {
var url2 = CLDJUrl+"/images/图片.png";
oDocument.Bookmarks("书签").Range.InlineShapes.AddPicture(url2);
}
#2
很nice