靠谱朗驰娱乐体育

靠谱朗驰娱乐体育 > 慧问 > 频道

为什么无法将图片导出到word,下为代码

发表于2019-05-10 回复:0 查看:2745  |  
string tmppath = Server.MapPath("~/image.doc"); Document doc = new Document(tmppath); //载入模板 #region 图片 DocumentBuilder builder = new DocumentBuilder(doc); Shape shape = new Shape(doc, ShapeType.Image); shape.ImageData.SetImage(Server.MapPath("~/Images/0.jpg")); shape.Width = 70; shape.Height = 70; shape.HorizontalAlignment = HorizontalAlignment.Right; //靠右对齐 builder.MoveToBookmark("image"); builder.InsertNode(shape); Bookmark myname = doc.Range.Bookmarks["image"]; myname.Text = ""; doc.Range.Bookmarks["image"].Remove(); doc.Save("demo.doc", SaveFormat.Doc, SaveType.OpenInWord, Response); #endregion
0个回答

打破零回复...

回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP
PM娱乐城知名最大推荐(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 腾曜集团权威足球(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 真人权威半岛网址(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 利记十大真人网(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 朗驰娱乐最火足球网站(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 知名朗驰娱乐足球网(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 线上十大盛凯国际推荐(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 朗驰娱乐线上足球大全(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新)