您的位置:首页 > 编程语言 > C#

编程实现Office 2003 Research 功能的代码详解C#篇(4)

2005-02-08 16:36 821 查看
builder a search service / using the searching service

Take a look through the file, and you will see a basic Research Pane Service that has both the Registration and Query Methods that we've seen earlier in this lab.

Note that we have used an XMLWriter class to add elements to the Registration Service, and that we have used a different technique (a StringBuilder class) to return some output from the Query method. We have used this technique so it is easy to identify the structure of the XML that is being returned. In practice, as in the Marketing Research Service in the WeRock labs, you would probably build up the query output by defining a template (an XSLT file) and performing a Transformation. This would take an XML file that you supplied and apply the stylesheet producing another set of XML.

Save this file into your default Web Directory (normally C:\inetpub\wwwroot).

Now let's look at using that Research Service from within Word.

这里就是编译然后放到虚拟目录里运行这个服务了,没有什么太多技术性的东西了,重要的内容都在前3篇了。最后就给大家截图看一下吧。



点那个 Research Options ... 在里面就可以设置custom的Research Service了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: