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 2 Next »

Table of Contents

Hello World with WordTemplate

WordWriter's WordTemplate approach allows you to write data to a template file that contains merge field. The merge fields tell WordWriter where to bind specific sets of data, similar to Word's mail merge. This tutorial will show you the basics on how to dynamically insert data into a document using WordTemplate by taking custom text from a web form textbox and inserting it into a template file.

Setting up the template file

Writing the code

1. Include the SoftArtisans.OfficeWriter.WordWriter namespace in the code behind.

Final Code

Downloads

You can download the code for the hello world tutorial as a Visual Studio solution.

  • No labels