Use Microsoft Visual C # for Microsoft Word 2002 and Ex

Source: Internet
Author: User
Tags documentation object model prepare microsoft c
Use Microsoft Visual C # to program Microsoft Word 2002 and Excel 2002
Kerry Loynd and Siew-Moi Khor
Microsoft Corporation
October 2002
Applicable:
Microsoft® Office XP
Microsoft Visual C #™
Abstract: Understand the COM interoperability between Microsoft C # and large and complex COM servers. This article describes how to prepare Office xp com objects and how to use these objects in the C # Program. It also provides some tips to help you understand why some operations must be implemented through specific methods.
Download or browse odc_offcs.exe at MSDN Downloads. Directory introduction system requirements. NET quick start knowledge use Office XP main interoperability assembly code walkthrough example 1: Start Word Application object Example 2: create a new Word document Example 3: open an existing Word document Example 4: example 5 of events published using Word: animation display Office assistant example 6: Overview of default and index properties
One of the most powerful functions of Microsoft® Office XP is that its components (such as Microsoft Excel 2002 and Microsoft Word 2002) publish their functions in the form of Component Object Model (COM) interfaces. It is easier to access these COM interfaces through Microsoft Visual Basic® 6.0, but it is more difficult to use these interfaces and public classes through C or C ++. However, Microsoft. NET and Microsoft C #™ or Microsoft Visual C ++® with managed extensions can easily use COM objects exposed by Office XP, just like Visual Basic 6.0.
This document assumes that you want to program Office XP. Although this article provides a hyperlink to the MSDN® documentation, you should be familiar with or be able to access the Office XP programming documentation.
This document describes the interfaces and public classes provided by Office XP and their usage methods. The document content is expressed in Visual Basic programming language. Therefore, you need to convert the methods and event signatures in your mind. This article describes how to perform this conversion, how to prepare COM objects for Office XP, and how to use these COM objects in the C # program. Finally, this article provides some tips to help you understand why some operations must be implemented through specific methods. With this information, you should be able to use other COM servers that use C. System requirements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.