[
Advertise | Submit Code | About us | Contact us | Link us
]
Go!
Membership Services
Login
Register

Home
C# General

General

C# Language

Design & Architecture

Algorithms

Database

Security

Active Directory

COM Interop

Remoting
C# Windows Forms

General

Combo and List boxes

Miscellaneous Controls

Button Controls

Edit Controls
Cutting Edge

ASP.NET 2.0

Visual Studio 2005

Windows Longhorn

SQL Server 2005
C# Multimedia and GDI+

General

DirectX

GDI+

Audio
Internet & Web

General

Images and multimedia

Database

Utilities

Security

ASP.NET Controls

Design and Architecture

Webservices
.NET

General

Design & Architecture

Algorithms

Database

Security

Active Directory

COM Interop

Remoting

ADO.NET

XML.NET

Tools

Enterprise

IDE
Visual Basic .NET

VB.NET General

VB.NET Controls
General Reading

.NET Books Review

Product Showcase

Book Chapters

Business Design & Strategy
Community

Discuss

Job Board

Discussion

CodeXchange
DeveloperLand

Advertise

Submit Code

About us

Contact us

Link us
Miscellaneous

Favorite Links

Downloads

Programming Sites

Top Stories
Regular Expressions

E-Mail

Date/Time
Home > C# General > General
Write a Word Add-In – Part 0
Posted by on Sunday, September 18, 2005 (EST)

Learn to write an add-in in C# that does everything a regular C# program does.

This article has been viewed: 13,303 times
Technology: General.

Contents

Introduction

I first wrote the article in Part I. But after writing it based on some questions and some further information I have come across, I realized that there really needed to be a precussor article. So here is the information I wished I had started with.

One other note. If you are going to write an Add-In, it’s not a trivial task. While very little of it is difficult, there is a lot to learn. And throwing one together quickly without understanding the entire framework is an invitation to disaster. You have to learn this stuff to write an Add-In correctly. (I think is some respects writing an Add-In requires a better understanding of it’s framework than writing a standard windows application.)

Top Go to Table of Contents

Books

The first two books are where you should start. Both are very well written and give you a very comprehensive guide to writing a Word Add-In. I wish I had known about these before I started – they would have saved me weeks of time and anguish. The additional books are very useful for specific needs.
  • Microsoft .NET Development for Microsoft Office – Andrew Whitechapel
  • Developing Microsoft Office Solutions – Keb Bluttman
  • Office 2003 XML – Evan Lenz, Mary McRae, & Simon Laurent.
    • This primarily covers the new xml file formats for the Office applications. They do an excellent job of explaining WordML and a good job of explaining the other formats. If you need to understand the Office xml formats, start with this book.
  • Microsoft Excel 97 Developer’s Kit – Baarns Consulting Group
    • This includes among other things, the xls file format. If you need to read or write xls directly, this is your only source.

Top Go to Table of Contents

Weblinks

Top Go to Table of Contents

VSTO

Exactly what VSTO is for has confused a lot of people (including me). Here is a really good explination from the VSTO Program Manager at Microsoft:

I just wanted to comment on some confusion about what VSTO is used for. VSTO 2005 enables you to create document level solutions in managed code (C# and VB) for Word and Excel. Document level solutions are a little different than Word or Excel add-ins which are application scope. VSTO solutions are tied to a document and the lifetime of the solution is that of the document. When you open the document your code is loaded and run. And when you close the document your code is unloaded. A new feature that was added for Beta2 is the ability to create managed Application level add-ins for Outlook. I hope this clears up any questions you have. Please fell free to contact me with any other questions you have.

Here are some great VSTO resources:

Top Go to Table of Contents

About DeveloperLand Administrator

Click here if you want to know more about .

Other articles that may interest you

  • Write a Word Add-In – Part 0
  • Write a Word Add-In – Part I
  • Lengthy Operations on Single Thread in .NET Application
  • Learning Draughts
  • Exceptions and Performance
  • Average Rating :

    Discussion Forums
    Got a programming related question? Hopefully someone has the answer... Want to help out other developers? Visit our discussion forums.

    Sponsored by:

    New Articles

  • Exceptions and Performance
    Almost every time exceptions are mentioned in mailing lists and newsgroups, people say they're really expensive.Let's examine that claim, shall we?

  • Creating multilingual websites - Part 1
    Extend the existing globalization capabilities of .NET to create flexible and powerful multilingual web sites. First, create a custom ResourceManager, and then create custom localized-capable server controls to easily deploy multilingual functionality.

  • Parameter passing in C#
    Many people have become fairly confused about how parameters are passed in C#, particularly with regard to reference types. This page should help to clear up some of that confusion

  • Most Popular Articles

  • LDAP, IIS and WinNT Directory Services
    This article explains how to use .NET Directory Services to retrieve and search directory objects, create new directory objects and edit or delete existing directory objects. Describes Active Directory Application Mode (ADAM) and how to use the IIS, WinNT and LDAP directory (ADSI) provider.

  • An in-depth look at WMI and instrumentation, Part II
    WMI stands for Windows Management Instrumentation and, as the name indicates, is about managing your IT infrastructure this article is the second part of a two-part series.

  • An in-depth look at WMI and instrumentation, Part I
    WMI stands for Windows Management Instrumentation and, as the name indicates, is about managing your IT infrastructure this article provides an in-depth look at WMI and MOM 2005

  • New Books

  • Murach's ASP.NET 2.0 Upgrader's Guide: VB Edition
    What’s new and how to use it! That’s what this book delivers if you’re a VB developer who’s interested in upgrading from ASP.NET 1.x to ASP.NET 2.0.

  • C# in easy steps
    Learn to program with Microsoft’s premier programming language. No previous programming knowledge is assumed. With numerous easy-to-follow examples, this title explains the essentials of object-oriented programming with C#.

  • Murach's ASP.NET web programming with VB.NET
    Murach's ASP.NET web programming with VB.NET by Doug Lowe and Anne Prince is a in depth training and reference book for ASP.NET programming using VB.NET. The book builds upon Murach's previous books and covers more advanced concepts for programming ASP.NET pages.

  • Got Code?

    if you have any article , source code , or anything else you'd like to share with this community that you think others might find useful, please submit it here and we will gladly make it available on this site. submit@developerland.com.
    Partners

    All articles are copyrighted by their individual authors unless otherwise specified , everything else Copyright ©2004-2006 DeveloperLand