关于《C#从入门到精通》第28章实例的问题
发表在C#图书答疑
2014-06-06
是否精华
是
否
版块置顶:
是
否
用VS2010打开28章的实例,在资源管理器中的引用中 “Word”前的符号显示一黄色的感叹号,将这个引用删除,然后添加引用 “Microsoft Word 11.0 Object Library”
然后显示错误
[strong]错误 12 当前上下文中不存在名称“Word” C:\Documents and Settings\Administrator\桌面\28\PWMS\PWMS\PerForm\F_ManFile.cs 848 53 PWMS[/strong]
然后在F_ManFile.cs文件上添加语句“using Word”
还是显示
[strong]错误 2 未能找到类型或命名空间名称“Word”(是否缺少 using 指令或程序集引用?) C:\Documents and Settings\Administrator\桌面\28\PWMS\PWMS\PerForm\F_ManFile.cs 12 7 PWMS[/strong]
请问这应当如何解决?
然后显示错误
[strong]错误 12 当前上下文中不存在名称“Word” C:\Documents and Settings\Administrator\桌面\28\PWMS\PWMS\PerForm\F_ManFile.cs 848 53 PWMS[/strong]
然后在F_ManFile.cs文件上添加语句“using Word”
还是显示
[strong]错误 2 未能找到类型或命名空间名称“Word”(是否缺少 using 指令或程序集引用?) C:\Documents and Settings\Administrator\桌面\28\PWMS\PWMS\PerForm\F_ManFile.cs 12 7 PWMS[/strong]
请问这应当如何解决?