Posts Tagged ‘.NET’

Working with Excel pivot tables: VB.NET code examples

Today, I'll show-off some code that shows how to automate pivot tables. It's quite likely your user base is 100% comprised of uber-serious spreadsheet jockeys. These people need your help. This code will help you relate to them and make their life easier... Read the rest of this entry →

Working with Excel tables & ranges: VB.NET code samples

Microsoft Excel, being a spreadsheet application, automatically brings structure to your thinking. You can build models to help you think through just about anything. You can organize your data and create lists of any imaginable type. In fact, most apps in the mobile app stores these days can easily be replaced by Excel files. Even games... Read the rest of this entry →

Working with Excel cell values, formulas and formatting: C# code samples

If you look at the title of this article, it almost sums up what Microsoft Excel is. Without cells, values and formulas, you just cannot get much done in Excel. Of course everything is contained within worksheets and workbooks and you can do so much more with Excel, but at the heart of it all lies cells... Read the rest of this entry →

Creating custom task panes for Excel 2013 – 2003

When building task panes for Microsoft Excel, Add-in Express provides developers with two options; using the standard Microsoft Office task pane or the more flexible Add-in Express advanced Office task panes... Read the rest of this entry →

Customizing Excel main menu, context menus, and Backstage view

Today we will tackle the issue of customizing Excel menus and back stage view. As you know, there are multiple versions of Excel "in-play" and it is wise to architect your solutions to work seamlessly with them. Add-in Express provides the tools, but it helps to know how to use them... Read the rest of this entry →

Customizing Microsoft Excel ribbons and toolbars

I think Excel's ribbon UI and toolbars are like a workbench, or set of tools. They are neatly arranged and reasonably grouped by task (although I know this is debatable). Today, we'll cover how to create custom ribbons and toolbars for Excel using Add-in Express for Office and .net... Read the rest of this entry →

Working with Microsoft Word templates: C# sample

This is a continuation of the work we did in my previous article. The difference is, we will use a pre-built template for inserting data. Instead of inserting data "willy-nilly", we need to find where to insert it within the document's pre-defined structure... Read the rest of this entry →

Populating Word documents with data from external sources (database, SharePoint, Outlook, etc.)

Today, I have three main C# code samples that insert data into Word. Each sample method creates and then goes to town inserting data. It is a simple strategy and works very well to get you started integrating data into Word... Read the rest of this entry →

Working with Word document properties, bookmarks, content controls and quick parts

Even though the object model can be somewhat daunting it gives you amazing flexibility and power over programmatically bending MS Word to your will. In today's article we'll have a look at the Microsoft Word document properties, content controls, quick parts and bookmarks, and how you can access and use these objects in your own add-ins... Read the rest of this entry →

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 →

Have any questions? Ask us right now!