Use an Excel RTD Server with DCOM
费好大劲找到的文章,留存。
Use an Excel RTD Server with DCOM
如何使用DCOM的Excel RTD服务器
Microsoft Office Excel 2007,Microsoft Office Excel 2003和Microsoft Excel 2002提供了一个名为RealTimeData(RTD)的新工作表函数。RTD允许您调用组件对象模型(COM)自动化服务器以实时检索数据。此RTD服务器可以作为ActiveX DLL或作为在同一本地计算机或远程服务器上运行的.exe存在。当RTD服务器在远程服务器上运行时,RTD服务器使用DCOM与Excel通信。
注意当RTD服务器在远程服务器上运行时,RTD服务器必须是.exe。
本文介绍如何在远程服务器和本地客户端计算机上配置DCOM以启用此功能。
更多信息
在远程服务器上配置DCOM
在将用作远程服务器的计算机上注册RTD服务器。请注意,必须在远程服务器和本地客户端计算机上安装Excel。
在任务栏上,单击“ 开始”按钮,单击“运行”,键入Dcomcnfg.exe,然后单击“ 确定”以启动DCOM配置实用程序。
在“ 默认安全性”选项卡上,编辑“ 默认访问权限”并添加允许访问RTD服务器的所有用户。对于公共RTD服务器,添加Everyone以允许匿名访问RTD服务器。将访问类型设置为允许访问。
将相同的条目添加到“ 默认启动权限”列表中,并将“访问类型”设置为“ 允许启动”。
将相同的条目添加到“ 默认配置权限”列表中。对于大多数RTD服务器,将访问类型设置为Read应该就足够了。对于使用注册表存储设置的RTD服务器,可能需要将“访问类型”设置为“ 完全控制”。
在本地客户端计算机上配置DCOM
在本地客户端计算机上注册RTD服务器。要Excel在远程服务器上请求RTD服务器,只需要注册ProgID和CLSID。
在本地客户端计算机上运行Dcomcnfg.exe。
在“ 默认安全性”选项卡上,编辑“ 默认访问权限”,然后添加“ Everyone”帐户。RTD服务器必须调用Excel以在新数据可用时通知它。由于Windows安全性的特性,即所谓的“单跳规则”,RTD服务器以匿名用户的身份回调Excel。如果默认访问权限下未列出Everyone帐户,则RTD服务器无法与Excel通信,Excel中的RTD公式将返回#N / A.
在本地客户端计算机和远程服务器上配置RTD服务器后,在本地客户端上启动Excel并将RTD函数输入到工作表上的单元格中。使用RTD功能的第二个参数指定安装RTD服务器的远程服务器:
= RTD(“RTDEXE.RTDServer”,“RemoteServer”,“AAA”)
参考
有关Excel和RTD服务器的更多信息,请单击下面的文章编号,以查看Microsoft中的文章 知识 基地:
***************************************************************
How to use an Excel RTD server with DCOM
O 電子郵件
列印
Summary
Microsoft Office Excel 2007, Microsoft Office Excel 2003, and Microsoft Excel 2002 provide a new worksheet function that is named RealTimeData (RTD). RTD lets you call a Component Object Model (COM) Automation server for retrieving data in real time. This RTD server can exist as an ActiveX DLL or as an .exe that runs on the same local computer or on a remote server. When the RTD server runs on a remote server, the RTD server uses DCOM to communicate with Excel.
Note When RTD server runs on a remote server, the RTD server must be an .exe.
This article describes how to configure DCOM on both the remote server and on the local client computer to enable this functionality.
More Information
Configure DCOM on the remote server
Register the RTD server on the computer that will serve as the remote server. Note that Excel must be installed on both the remote server and the local client computer.
On the taskbar, click the Start button, click Run, type Dcomcnfg.exe, and then click OK to start the DCOM configuration utility.
On the Default Security tab, edit Default Access Permissions and add any users that are permitted to access the RTD server. For a public RTD server, add Everyone to allow anonymous access to the RTD server. Set Type of Access to Allow Access.
Add the same entries to the Default Launch Permissions list, and set the Type of Access to Allow Launch.
Add the same entries to the Default Configuration Permissions list. For most RTD servers, setting the Type of Access to Read should be sufficient. For RTD servers that use the registry to store settings, it may be necessary to set the Type of Access to Full Control.
Configure DCOM on the local client computer
Register the RTD server on the local client computer. For Excel to request the RTD server on the remote server, only the ProgID and CLSID need to be registered.
Run Dcomcnfg.exe on the local client computer.
On the Default Security tab, edit the Default Access Permissions, and add the Everyone account. The RTD server must make calls to Excel to notify it when new data becomes available. Because of a feature of Windows security, the so-called "One Hop Rule," the RTD server makes its call back to Excel as an anonymous user. If the Everyone account is not listed under Default Access Permissions, the RTD server is unable to communicate with Excel, and RTD formulas in Excel return #N/A.
After you configure the RTD server on both the local client computer and the remote server, start Excel on the local client and enter the RTD function into a cell on a worksheet. Use the second parameter of the RTD function to specify the remote server on which the RTD server is installed:
=RTD( "RTDEXE.RTDServer", "RemoteServer", "AAA" )
References
For more information about Excel and RTD servers, click the following article number to view the article in the Microsoft Knowledge Base:
285339 How to create a RealTimeData server for Excel
內容
文章識別碼:285888 - 最後檢閱時間:2009年3月23日 - 修訂: 1
Use an Excel RTD Server with DCOM的更多相关文章
- 浅谈Excel开发:五 Excel RTD函数
上文介绍了Excel中的UDF函数,本文介绍一下同样重要的RTD函数.从Excel 2002开始,Excel引入了一种新的查看和更新实时数据的机制,即real-time data简称RTD函数 ...
- 工作时间看股票:采用Excel RTD技术获取和讯网的实时股票行情及深沪港最新指数
本文地址:http://www.cnblogs.com/Charltsing/p/RTD.html QQ:564955427 在Excel里面获取实时数据大概有几种方式:1.定时器+函数2.DDE3. ...
- 在windows server 2008 R2 64bit上面配置PI OPC Server的DCOM
今天想配置PI OPC SERVER的DCOM设置,但是发现在“运行dcomcnfg->组件服务-计算机-我的电脑-DCOM设置”中找不到PI OSI DA Server.如下图所示 这是以前从 ...
- VBS将本地的Excel数据导入到SQL Server中
VBS将本地的Excel数据导入到SQL Server中 高文龙关注0人评论1170人阅读2017-05-14 12:54:44 VBS将本地的Excel数据导入到SQL Server中 最近有个测试 ...
- 浅谈Excel开发:六 Excel 异步自定义函数
上文介绍了Excel中的自定义函数(UDF ),它极大地扩展了Excel插件的功能,使得我们可以将业务逻辑以Excel函数的形式表示,并可以根据这些细粒度的自定义函数,构建各种复杂的分析报表. 普通的 ...
- MFC 简单输出EXCEL - (OLE)
三图胜千言: 就是酱紫: //打印领料表 void CKnifeDlgDlg::PrintCurUsedTabel(int order) { // TODO: Add your command han ...
- VS2010对Excel操作---DLL向
最近公司有个项目要用到Excel的操作,于是自己就对VC中关于Excel的操作进行整理了下.而这里我是直接做成DLL方便他人调用的. 创建一个MFC Dll项目. 选择MFC扩展DLL. 在“类视图” ...
- VC2010对Excel的操作
1. 创建新的C++工程 创建基于对话框的MFC程序 2. 添加库.添加Excel类库 在工程名上右键,选择“添加”—“类”(或者点击菜单栏的“项目”->“添加类”),选择“TypeLib中的M ...
- c# 调用EXCEL在VS上能正常运行,部署在IIS上不能实现,在VS中运行页面和发布之后在IIS中运行的区别
发现一篇文章,很好,解决了这个问题:感谢原博主!特此做个笔记. 地址:http://www.cnblogs.com/zhongxinWang/p/3275154.html 发布在IIS上的Web程序, ...
随机推荐
- 原生javascript的意义
原生JS是指遵循ECMAscript标准的javascript,不同于微软的jscript也不依赖于任何框架,依托于浏览器标准引擎的脚本语言. jquery是在原生态的js上集成的框架资源,使用jqu ...
- linux系统awk命令
awk是行处理器: 相比较屏幕处理的优点,在处理庞大文件时不会出现内存溢出或是处理缓慢的问题,通常用来格式化文本信息awk处理过程:?依次对每一行进行处理,然后输出awk命令形式:awk [-F|-f ...
- ORA-00001:unique constraint (use.sys_c0013338) violated
从报错的 信息来看,是唯一约束.但是第一眼看到use.sys_c0013338 误以为是张表,(老司机帆船了啊,水还是咸的!) 解决方法: SQL>select table_name from ...
- 12、Nginx代理缓存服务
通常情况下缓存是用来减少后端压力, 将压力尽可能的往前推, 减少后端压力,提高网站并发延时 1.缓存常见类型 服务端缓存 代理缓存, 获取服务端内容进行缓存 客户端浏览器缓存 Nginx代理缓存原理 ...
- laravel swoole Call to undefined method Illuminate\Events\Dispatcher::fire()
报错: Call to undefined method Illuminate\Events\Dispatcher::fire() Whoops\Run::handleError("Unca ...
- .htaccess防盗链方法(文件、图片)
http标准协议中有专门的字段记录referer,一来可以追溯上一个入站地址是什么,二来对于资源文件,可以跟踪到包含显示他的网页地址是什么. 因此所有防盗链方法都是基于这个Referer字段两种方法: ...
- .htaccess 一段神奇的跳转代码
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_REFERER} ^.*(google|ask|yahoo|you ...
- Spring相关概念
DIP: Dependency Inversion Principle.翻译过来是依赖反转原则,也叫依赖倒置原则. 依赖倒置原则是设计模式几个重要原则之一.具体定义就是,底层模块依赖高层模块定义的接口 ...
- 关于数字加载的动画 jquery
这是关于数字加载的一个动画,从0开始变化到设置的数字,依赖于jquery,效果如下所示 当然,数字要显示的位数是可以设置的,默认是全部位数的数字,设置显示位数可以直接传递参数,例如: html文件为: ...
- Oracle数据库体系结构-Shared Pool
Oracle数据库简单介绍 对象关系型数据库 重点:一致性+性能 一致性优于性能 处理模型:C/S模型 Client:用户和用户进程 Server:服务器进程,实例,数据库本身 ...