首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

用InlineShapes.AddOLEControl增添图片

2012-06-21 
用InlineShapes.AddOLEControl添加图片object anchor thisApplication.Selection.Rangeobject classtyp

用InlineShapes.AddOLEControl添加图片
object anchor = thisApplication.Selection.Range;
  object classtype = "Forms.Image.1";
  Word.InlineShape MyInlineShape = thisDocument.InlineShapes.AddOLEControl(ref classtype, ref anchor);
用这种方式添加图片,而不是用thisDocument.InlineShapes.AddPicture(ImageName, ref linkToFile, ref saveWithDocument, ref anchor); 这种方式
用C#怎么绑定一个image(drawing下的) 怎么写?

[解决办法]
不知道怎么做

热点排行