test = new CCWordApp();
            test.Open(temppath);
 test.GotoBookMark("imgBar1");
 test.InsertImage(barFileName, 90, 30);public void InsertImage(string strPicPath, float picWidth, float picHeight)
    {
        string FileName = strPicPath;
        object LinkToFile = false;
        object SaveWithDocument = true;
        object Anchor = oWordApplic.Selection.Range;
        InlineShape inlineShape = oWordApplic.Selection.InlineShapes.AddPicture(FileName, ref LinkToFile, ref SaveWithDocument, ref Anchor);
        inlineShape.Width = picWidth;
        inlineShape.Height = picHeight;
    }
在线求解,刚开始调试可以向word文档对应标签的单元格插入图片,但是后面就一直报错了,是什么原因?
按照网上:1. 在控制面板--->管理工具--->服务 中,开启Distributed Transaction Coordinator 服务。
2. 打开控制面板--->管理工具--->组件服务--->选择计算机--->我的电脑--->右击属性--->选择MSDTC--->选择安全配置 勾选事务管理器通信中的允许出站、允许入站和不要求进行验证。
试了也不行