Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note
iconfalse
titlePrerequisites

You will need WordWriter 8 installed in order to run the Hello World sample.

  • If you haven't purchased ExcelWriter, you can download an evaluation version here.
  • If you need to install WordWriter, please visit the install page for instructions.

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.

  1. Open Visual Studio and create a .NET project (this tutorial uses a web application).
  2. 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.

Excerpt

This tutorial will walk you through writing a snippet of text to a word document using WordTemplate and WordApplication.

Section
Column
width50%
Panel
bgColorwhite
titleBGColor#EEE
titleHello 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}

Column
width50%
Panel
bgColorwhite
titleBGColor#EEE
titleHello 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 WordlApplication|Hello World Using WordApplication]
{div5}