Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Table of Contents

Setting Up the Template

Getting Started

In this tutorial [ExcelTemplate|] is being used to populate data and [ExcelApplication|] is being used to format the data. This part of the tutorial will make use of data marker modifiers

Icon

This example assumes an understanding of ExcelTemplate. If you are not familiar with how to set up an Excel template with data markers, please go through the Simple Expense Summary first.

Using Modifiers

The template should resemble this upon completion:

This template uses two different data marker modifiers - fieldname and optional.
The fieldname modifier shows the fieldname of the column being bound. It will not bind any additional data. It is used like this:

The optional modifier allows that data marker to be ignored on data binding. If you have a column that may be empty, the optional modifier allows you to bind the data set regardless. It is used like this:

Adding an ExcelWriter Reference in Visual Studio

Writing the Code

Data Binding

Post-Processing

Final Code

  • No labels