...
- Open Visual Studio and create a .NET project
- The WordWriter Hello World sample 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
Template vs. Application based Approaches
WordWriter offers two approaches to generating, processing and manipulating Word documents: WordTemplate and WordApplication.
Excerpt |
---|
This tutorial will walk you through writing a snippet of text to a word document using WordTemplate and WordApplication. |
Section |
---|
Column |
---|
| Panel |
---|
bgColor | white |
---|
titleBGColor | #EEE |
---|
title | Hello World: Template Based Approach |
---|
borderColor | #AAA |
---|
titleColor | #666 |
---|
| Wiki Markup |
With WordTemplate, we can insert our data into a specially formatted Word file.
{div5:class=button-style}
[Using WordTemplate|Hello World using WordTemplate]
{div5}
file. Panel |
---|
bgColor | #6691BC |
---|
borderStyle | solid |
---|
borderColor | white |
---|
borderWidth | 20 |
---|
| |
|
|
Column |
---|
| Panel |
---|
bgColor | white |
---|
titleBGColor | #EEE |
---|
title | Hello World: Programmatic Approach |
---|
borderColor | #AAA |
---|
titleColor | #666 |
---|
| Wiki Markup |
With WordApplication's full object-model, we can create a Word file completely from scratch.
{div5:class=button-style}
[Using WordApplication|Hello World Using WordApplication]
{div5}
scratch. Panel |
---|
bgColor | #6691BC |
---|
borderStyle | solid |
---|
borderColor | white |
---|
borderWidth | 20 |
---|
| |
|
|
|