|
This is a basic demo that inserts data into a template document that has two
merge fields.
Technical Overview
Enter values into the text boxes below and click the button. The values
will be inserted into the template document by WordTemplate and streamed back
to you for viewing in MSWord.
If you are just learning WordTemplate, this demo is a good place to start
looking at the code. The general sequence of handling a WordTemplate
document is as follows: 1) Create an instance of WordTemplate, 2) Open the
template document, 3) Set a document data source and one or more repeat blocks,
4) call the process() method to pull in the data, and finally 5) Save
the document either to disk, or to a response stream to the client browser.
View source
View template
Run demo
Enter a Name and Company string.

Copyright 2005 © SoftArtisans, Inc. All Rights
Reserved.
|