编程实现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了。
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了。
相关文章推荐
- 编程实现Office 2003 Research 功能的代码详解C#篇(1)
- 编程实现Office 2003 Research 功能的代码详解C#篇(3)
- 编程实现Office 2003 Research 功能的代码详解C#篇(2)
- ASP.NET实现word文档在线预览功能代码-JavaScript编程
- Android编程实现的微信支付功能详解【附Demo源码下载】
- 自己动手实现jQuery Callbacks完整功能代码详解
- ActiveX控件的使用-js实现打印超市小票功能代码详解
- Android6.0编程实现双向通话自动录音功能的方法详解
- 一个函数5行代码即可实现完整的面向方面AOP编程功能
- Android 偷拍功能实现(手机关闭依然拍照)详解及实例代码
- 网络编程服务器与客户端实现代码详解
- 分布式编程->Remoting的一个代码示例(借助Remoting实现发送信息功能)
- php实现留言板功能(代码详解)
- 自己动手实现jQuery Callbacks完整功能代码详解
- sql server 自定义分割月功能详解及实现代码
- [置顶] 【Android】Scrollview返回顶部,快速返回顶部的功能实现,详解代码。
- Android编程实现捕获程序异常退出时的错误log信息功能详解
- [导入]分布式编程->Remoting的一个代码示例(借助Remoting实现发送信息功能)
- 分布式编程->Remoting的一个代码示例(借助Remoting实现发送信息功能)
- linux多线程编程详解教程(线程通过信号量实现通信代码)