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篇了。最后就给大家截图看一下吧。
o_office2003research2.GIF

点那个 Research Options ... 在里面就可以设置custom的Research Service了。

posted on 2005-02-08 16:36  维生素C.NET  阅读(991)  评论(2)    收藏  举报