ICANN认证国际域名顶级注册机构
网站建设,域名注册,空间租用,软件销售,广告设计 域名注册,空间租用, 网站建设,东莞网页设计,域名注册,网站推广,网站开发,网页设计 网站推广,,百度推广,新浪推广,雅虎推广,网易推广 标志设计,画册设计,包装设计,VI策划,企业形象顾问 连邦软件加盟店,提供销遥行,管家婆,速达,用友ERP,诺顿等软件报价及销售 建站必读 腾达网络,上网帮助中心, 腾达为东莞等地,提供网站建设,网站推广,广告设计,软件销售等优质服务!
建站必读


 
 
当前位置:首页 -> 建站必读 -> .NET技术
如何用C#.NET处理WORD的事件
How to handle events in Word by using Visual C# .NET

适用于

IN THIS TASK

SUMMARY

Recognize events that are supported by Word 2000, by Word 2002, and by Word 2003

Recognize events that are supported by Word 2002 and by Word 2003

Recognize events that are supported by Word 2003

Create a Visual C# .NET Automation client that handles Word events

Test the code

REFERENCES

SUMMARY

This article describes how to handle events in Microsoft Word 2000, in Word 2002, and in Microsoft Office Word 2003 from an Automation client that is created by using Microsoft Visual C# .NET.



back to the top

MORE INFORMATION

With Visual C# .NET, Word events are based on delegates. Word defines the events that it will raise, providing callback functions. The delegate is a template for a single method that meets the requirements of Word for the callback function for one event. The Visual C# .NET program creates a specific object that is based on that delegate. That object complies with the requirement for the Word callback function for a specific reference.

Recognize events that are supported by Word 2000, by Word 2002, and by Word 2003

+-------------------------------------------------------------------------------+

| Event | Description |

+-------------------------------------------------------------------------------+

| Close | Occurs when a document is closed. |

+-------------------------------------------------------------------------------+

| DocumentBeforeClose | Occurs immediately before any open document closes. |

+-------------------------------------------------------------------------------+

| DocumentBeforePrint | Occurs before any open document is printed. |

+-------------------------------------------------------------------------------+

| DocumentBeforeSave | Occurs before any open document is saved. |

+-------------------------------------------------------------------------------+

| DocumentChange | Occurs when a new document is created, when an |

| | existing document is opened, or when another |

| | document is made the active document. |

+-------------------------------------------------------------------------------+

| DocumentOpen | Occurs when a document is opened. |

+-------------------------------------------------------------------------------+

| GotFocus | Occurs when the focus is moved to an embedded |

| | ActiveX control. |

+-------------------------------------------------------------------------------+

| LostFocus | Occurs when the focus is moved from an embedded |

| | ActiveX control. |

+-------------------------------------------------------------------------------+

| New | Occurs when a new document that is based on the |

| | template is created. A procedure for the New event |

| | runs only if it is stored in a template. |

+-------------------------------------------------------------------------------+

| NewDocument | Occurs when a new document is created. |

+-------------------------------------------------------------------------------+

| Open | Occurs when a document is opened. |

+-------------------------------------------------------------------------------+

| Quit | Occurs when the user quits Word. |

+-------------------------------------------------------------------------
 
 
本站关键词:
|常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计||常平镇 桥头镇 横沥镇|东坑镇 企石镇 石排镇|茶山镇 莞城 东城|万江 南城|东莞网络服务|东莞软件开发|东莞软件设计|东莞主页设计|东莞公司主页|东莞建站套餐|东莞建站服务|东莞商标设计|
域名注册 | 虚拟主机 | 网站建设 | 网站推广 | 广告设计 | 帮助中心 | 软件中心 | 关于腾达
东莞市腾达信息工程有限公司      本站网络实名: 东莞网站建设
地址:东莞市新城市中心区第一国际B座610   邮编:523007
电话:0769-22026071 22026072 传真:0769-22026076 24小时服务热线:13712032014
© 2002~2005 腾达网络   版权所有