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程序, ...
随机推荐
- react 中 css模块化类名 和普通全局类名 一起使用
<div className={[`${styles.tableOpers}`,`clearfix`].join(' ')}></div>
- poj 2081 Recaman's Sequence (dp)
Recaman's Sequence Time Limit: 3000MS Memory Limit: 60000K Total Submissions: 22566 Accepted: 96 ...
- 牛客练习赛47 DongDong数颜色 (莫队算法)
链接:https://ac.nowcoder.com/acm/contest/904/E 来源:牛客网 DongDong数颜色 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 5242 ...
- 《Python基础教程》一点笔记
这本书还是月初的时候翻了翻,看了前十章左右就发现这本书写的比较烂,翻译地就更烂了,讲的内容其实没有抓住重点. 下面是看的时候记得几小段代码: #首字母相同的男生女生 girls = ['alice', ...
- struts2与SpringMVC区别
1.springmvc基于方法开发的,struts2基于类开发的. 2.单例和多例的区别:springmvc在映射的时候,通过形参来接收参数的,是将url和controller方法映射,映射成功后,s ...
- debug --- 使用Eclipse
debug必知(快捷键若无效,有可能是与其它软件的快捷键发生冲突的原因) 1.F6 —— 单步执行代码,即顺序一行行地执行源码 2.F5 —— 跳入当前调用的函数的内部,即进入函数内部执行源码 ...
- 模拟客户端向服务器发起请求(从Fiddler抓包到Jmeter接口测试)
一.安装Fiddler 二.配置 在菜单栏Tools->Fiddler Options->Connections,勾选Allow remote computers to connect,默 ...
- Angular4.x+Ionic3 踩坑之路之 Ionic3.x pop反向传值
1.Ionic3.x 页面正向传值 关于正向传值,上一篇文章里面有讲,具体可以看这里https://segmentfault.com/a/11... 2.Ionic3.x 页面 pop反向传值,主要有 ...
- 原生js实现简单的下拉刷新功能
前言: 我们在浏览移动端web页面的时候,经常会用到下拉刷新. 现在我们用原生的js实现这个非常简单的下拉刷新功能. (温馨提示:本文比较基础,功能也很简单.写的不好的地方,希望大神提点一二.) 一. ...
- k8s命令集锦
集群环境相关命令$kubectl vertion --short=true #显示当前使用的客户端及服务端程序版本信息$kubectl cluster-info #获取集群信息$kubectl api ...