Downloads
You can download the code for the Hello world tutorial as a visual studio solution.
ExcelWriter Reference in Visual Studio
Create a .NET project and add a reference to the WordWriter library.
- Open Visual Studio and create a .NET project (this tutorial uses a web application).
- Add a reference to SoftArtisans.OfficeWriter.WordWriter.dll
- SoftArtisans.OfficeWriter.WordWriter.dll is located under Program Files > SoftArtisans > OfficeWriter > dotnet > bin
You can download the Hello World sample code (C# or VB) to see the finished product.
Template vs. Application based Approaches
WordWriter offers two approaches to generating, processing and manipulating Word documents: WordTemplate and WordApplication. This tutorial will walk you through writing a snippet of text to a word document using WordTemplate and WordApplication.
Hello World: Template Based Approach
With WordTemplate, we can insert our data into a specially formatted Word file.
Unknown macro: {div5}
Hello World: Programmatic Approach
With WordApplication's full object-model, we can create a Word file completely from scratch.
Unknown macro: {div5}