佚名通过本文主要向大家介绍了word bookmarks,bookmarks.get item,bookmarks,bookmarks是什么意思,bookmarks文件还原等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: Word组件中为什么不能使用BookmarksItem方法
描述:
Microsoft.Office.Interop.Word.Document myWordDoc;
myWordDoc=myWordApp.Documents.Add(ref oTemplate,ref Nothing,ref Nothing,ref Nothing);
myWordDoc.Bookmarks.Item(ref oBookMark).Range.Text="●";
超级郁闷,不清楚为什么myWordDoc.Bookmarks.Item为什么会在编译时候报错,是word组件版本问题吗,或者要对标签赋值的话诸位大大有别的解决方法吗
描述:
本帖最后由 bean_lion 于 2009-11-30 16:33:28 编辑
Microsoft.Office.Interop.Word.ApplicationClass myWordApp=new Microsoft.Office.Interop.Word.ApplicationClass();Microsoft.Office.Interop.Word.Document myWordDoc;
myWordDoc=myWordApp.Documents.Add(ref oTemplate,ref Nothing,ref Nothing,ref Nothing);
myWordDoc.Bookmarks.Item(ref oBookMark).Range.Text="●";
超级郁闷,不清楚为什么myWordDoc.Bookmarks.Item为什么会在编译时候报错,是word组件版本问题吗,或者要对标签赋值的话诸位大大有别的解决方法吗