C#实现在Word文档指定标签位置插入图片

2008年11月27日星期四

C#实现在Word文档指定标签位置插入图片

C#实现在Word文档指定标签位置插入图片

object bkmC = "C";
if (wApp.ActiveDocument.Bookmarks.Exists("C") == true)
{
wApp.ActiveDocument.Bookmarks.get_Item(ref bkmC).Select();
}
object Anchor = wApp.Selection.Range;
object LinkToFile = false;
object SaveWithDocument = true;
wApp.ActiveDocument.InlineShapes.AddPicture("I:\\nz_32.gif", ref LinkToFile, ref SaveWithDocument, ref Anchor);

    0 评论:

    发表评论