Posts Tagged ‘.NET’

Using custom XML parts in Word add-ins

Custom XML parts are chunks of XML that reside within a Word document. They are not part of the document, per se, because they are not visible to the user. Starting with Office 2007, the Office file formats are XML-based and are comprised of XML parts... Read the rest of this entry →

Working with multiple Microsoft Word documents: C# add-in example

In today's article we'll take a look at how you can combine information and text from various existing Microsoft Word documents into a single document. We'll create a Word add-in that will allow the user to select and insert different paragraphs from one or more existing Word documents, into another document... Read the rest of this entry →

Working with Word document designs, styles and printing

Designing Microsoft Word documents is not all that different from designing a web page; you want to keep the content and the design separate. In Word, you keep them separate by utilizing styles. Styles include a plethora of design elements (e.g. font, borders, paragraph format, etc). Let's have some fun with them via code... Read the rest of this entry →

Working with Word document content objects

Microsoft Word is about the authoring of documents. Documents contain pages, paragraphs, sentences and more. Today, I want to wade into the waters of manipulating Word document content. The plan is to get your feet wet by providing an overview of the key objects along with code samples... Read the rest of this entry →

Building custom task panes for Word 2013 – 2003

When building a Word add-in using Add-in Express, you have a choice of either creating a standard Office task pane or using the Add-in Express advanced Office task panes. In this article, we'll take a look at both approaches.... Read the rest of this entry →

Customizing Microsoft Word ribbons and toolbars: VB.NET, C#

A popular user interface customization is custom ribbons and custom toolbars. I think you know what these are and we'll cover how to create both of them for Microsoft Word. We'll start with Ribbon and work our way back to the legacy toolbars (aka CommandBars). ... Read the rest of this entry →

Customizing Word main menu, context menus and Backstage view: C# sample

Microsoft Word, like all the Office applications, introduced the Ribbon UI in Office 2007. However, Office 2003 still has a pretty big install base. This means that you will need to cater for the different user interface components that accompany Word 2003 and older.... Read the rest of this entry →

Customizing Word User Interface: What is and isn’t customizable

But for the advanced user who views Word as essential to their daily grind at the office… Word needs to do some adjusting to the user. This user has well defined grooves in their workday. They work spans across multiple teams, departments, companies, and applications. Microsoft Word can be a player in these processes and you can put Word in the best position possible. But how?... Read the rest of this entry →

Word add-in development in Visual Studio: Application and base objects

In this article, the first in a series of Word development topics, I'll cover Microsoft Word application and base objects. And, as is our tradition, I'll provide relevant code samples for Word 2013 - 2000 you can copy and paste into your solutions... Read the rest of this entry →

Automating Word Mail Merge in Visual Studio – C# sample

The Mail Merge functionality in Microsoft Word is one of the most powerful features that enables you to create, amongst other things, simple form letters. It is, however, one of the tricky things to get your head around when trying to automate it in either an Office add-in or a stand-alone application using the Word Object model... Read the rest of this entry →

Developing powerful Outlook add-ins with Visual Studio (VB.NET, C#)

With the recent Beginning Outlook Development series complete, we thought it would be a good idea to do a demo that shows how easy/simple/relatively painless it is to build a powerful Outlook add-in with Visual Studio ... Read the rest of this entry →

Customizing built-in Office Ribbon groups – C# Excel add-in example

Customizing the built-in Microsoft Office ribbon groups is something that many people have tried but they usually hit a brick wall in the process. Unfortunately, it is not possible to customize the built-in ribbon groups, however, you can create your custom Office ribbon group and "replace" the built-in group with your own... Read the rest of this entry →

Working with Outlook tasks: how to create, get and delete Task and To-Do items

Outlook tasks are a great way to keep track of things you need to do. I use it every single day! A task item is a standard Outlook type and by default all tasks are flagged for follow-up when created. When any items such as an e-mail, task or contact are flagged for follow-up it automatically becomes a to-do item and is visible in your To-do bar... Read the rest of this entry →

Working with Outlook calendar (appointment and meeting items)

Yeah sure, email is front and center with Outlook. But right behind it and ready to steal the show is the Outlook calendar. If you aren't looking at email, I bet you are looking at your calendar to see if you can meet at such-and-such time on such-and-such date... Read the rest of this entry →

Working with Outlook mail items: how to create, delete, access & enumerate

Mail items are the featured player of Outlook… email! Sure, contacts and appointments are regulars but email receives the most attention. We are addicted to the stuff. And as an Outlook plug-in developer, you need to know the basics.... Read the rest of this entry →

Working with Outlook Accounts, Stores, Folders and Items

Any user of Microsoft Outlook will tell you that you cannot use Outlook without first setting up an account. This account can either be an Exchange server, POP or IMAP account, although Outlook can support any MAPI style account too.... Read the rest of this entry →

Have any questions? Ask us right now!