Main Content

com对象马铃薯草

从MATLAB访问COM组件®

The Microsoft®组件对象模型com) provides a framework for integrating reusable, binary software components into an application. Because components are implemented with compiled code, the source code can be written in programming languages that support COM. Upgrades to applications are simplified, as components can simply be swapped without the need to recompile the entire application. In addition, a component's location is transparent to the application, so components can be relocated to a separate process or even a remote system without having to modify the application.

或者,考虑使用Microsoft .NET Framework。

Matlab支金宝app持Microsoft Windows上的COM和.NET Framework集成®仅限平台。

Funzioni

ActxServer 创建COM服务器
ActxGetRunningserver 掌握自动化服务器的运行实例
方法浏览量 View class methods
EventListeners. 列出与COM对象事件关联的事件处理程序函数
注册商 在运行时将事件处理程序关联COM对象事件
未注册 取消注册与COM对象事件关联的所有事件处理程序
unregisterevent 在运行时取消注册与COM对象事件关联的事件处理程序
iscom 确定输入是否为COM对象
isevent 确定输入是否为COM对象事件
isinterface Determine whether input is COM interface

Oggetti

com 访问COM组件马铃薯草

ESEMPI.e istruzioni

微软办公室

使用Excel写入电子表格数据作为自动化服务器

此示例显示如何将Matlab矩阵写入Excel®电子表格。

Read Spreadsheet Data Using Excel as Automation Server

此示例显示如何使用COM Automation Server访问来自Matlab的另一个应用程序。

更改电子表格中的光标

此示例显示如何在Excel®电子表格中更改光标图标。

Change Row Height in Range of Spreadsheet Cells

此示例显示如何更改行的高度,由a定义Rangeobject, in a spreadsheet.

Insert Spreadsheet After First Sheet

This example shows how to skip an optional input argument in the Excel添加method, used to insert a sheet into a workbook.

连接到现有Excel应用程序

此示例显示如何从打开文件中读取数据,Weekly_log.xlsx., in MATLAB.

显示工作簿的邮件onClose事件

此示例显示如何处理COM接口事件,如何在A中设置事件微软Excel工作簿object, and how to handle itsbeforeclose.event.

探索COM对象

Learn about a COM object using MATLAB commands.

阴凉

matlab com集成

COM概念及MATLAB中COM支持的概述。金宝app

Get Started with COM

展示如何使用MATLAB的COM接口的示例。

注册服务器

在使用COM对象之前,必须注册其服务器。

创建COM对象

如何创建Microsoft控件和COM服务器对象。

在Matlab中处理COM数据

将数据传递给COM对象的数据并处理数据。

comObject Properties

列表属性名称和设置值,使用多个对象和属性,使用属性检查器,使用枚举值和自定义属性。

COM方法

You execute, or邀请,属于COM对象的COM函数或方法。

COM事件

响应事件,写入事件处理程序。

COM事件处理程序

采用注册商注册服务器事件。

保存并删除COM对象

采用these MATLAB functions to save and restore the state of a COM control object.

COM对象接口

使用com接口。

COM系列

com收藏品是支持可以迭代的相关COM金宝app对象组的方法。

Supported Client/Server Configurations

MATLAB中的COM客户端 - 服务器配置。

MATLAB应用程序作为DCOM客户端

分布式组件对象模型(DCOM)是一种协议,允许客户端通过网络使用远程COM对象。

Risoluzione一些problemi

马铃薯草comSupport Limitations

Microsoft不支持将32位DLL金宝app或In-Process COM服务器加载到64位应用程序中,还是相反。

Interpreting Argument Callouts in COM Error Messages

当MATLAB客户端向COM服务器应用程序向COM服务器应用程序发送命令时,服务器以以下格式发出错误消息。