WordTemplate Class open setLocale setDataSource process save |
The WordTemplate Class |
java.lang.Object | +--com.softartisans.wordwriter.WordTemplate
public class WordTemplate
extends java.lang.Object
The WordTemplate
class represents a WordWriter template. A
WordWriter template is a file created in Microsoft Word that contains
merge fields. A merge field displays a data source field name (for example,
a database column name) where a data source value will be inserted.
The WordTemplate
class provides methods that open the template,
set a data source, populate merge fields, and generate a new Word file.
The WordTemplate
class is in com.softartisans.wordwriter
.
To create an instance of WordTemplate
:
WordTemplate
class to your Java page:
import com.softartisans.wordwriter.WordTemplate;
WordTemplate
object and intialize it as null:
WordTemplate oWW = null;
WordTemplate
:
oWW = new WordTemplate();
public WordTemplate
()
Creates a new WordTemplate
object.
open | The |
---|---|
setLocale | The setLocale method allows you to override the server's default
locale when generating a new Word file. |
setDataSource | The |
process | The |
save | The |
WordTemplate Class open setLocale setDataSource process save |