日期:2014-05-17  浏览次数:20894 次

C#如何取得数据编辑框中的图插入word
C#请教如何取得数据编辑框中的图插入word,以下的图是从数据库中读取出来的

请大家帮下,现在就是取不到当前对话框中图片的路径
                //添加图片
  WordDoc.Bookmarks.get_Item(ref BookMark[6]).Select();
                    app.Selection.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter;
                    app.Selection.InlineShapes.AddPicture(imgpath, ref missing, ref missing, ref missing);
                    app.Application.ActiveDocument.InlineShapes[1].Width = 400;
                    app.Application.ActiveDocument.InlineShapes[1].Height = 200;

------解决方案--------------------
Bitmap bmp;
bmp.Save(@"f:\001.jpg")