首页 > 其他 > 详细

word中替换被批注的正文的值

时间:2015-08-27 20:34:53      阅读:197      评论:0      收藏:0      [点我收藏+]
 

word中替换被批注的正文的值

 

            try
            {
                Word.Document document = (Word.Document)dsoWord.ActiveDocument;
                foreach (Word.Comment var in document.Comments)
                {
                    var.Scope.Text = "替换被批注正文的值";

                    //var.Range.Text = textBox1.Text;//替换批注的值
                }
                document.Save();
            }
            catch (Exception)
            {
                MessageBox.Show(this, "替换值失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

word中替换被批注的正文的值

原文:http://www.cnblogs.com/taomylife/p/4764093.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!