com.acesoft.aceoffix.wordwriter
Class Template

java.lang.Object
  extended by com.acesoft.aceoffix.wordwriter.Template

public class Template
extends java.lang.Object

Template class is used to define a Word template.

Version:
5.0
Author:
Acesoft Corporation

Method Summary
 void defineDataRegion(java.lang.String name, java.lang.String caption)
          Defines the DataRegion.
 void defineDataTag(java.lang.String name)
          Defines the DataTag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

defineDataRegion

public void defineDataRegion(java.lang.String name,
                             java.lang.String caption)
                      throws java.lang.Exception,
                             java.io.IOException
Defines the DataRegion. User can only add the valid DataRegion defined by DefineDataRegion method to Word document manually.

Parameters:
name - The name of the DataRegion.
caption - The friendly title of DataRegion.
Throws:
java.lang.Exception
java.io.IOException

defineDataTag

public void defineDataTag(java.lang.String name)
                   throws java.lang.Exception,
                          java.io.IOException
Defines the DataTag. User can only add the valid DataTag defined by DefineDataTag method to Word document manually.

Parameters:
name - The name of the DataTag. It cannot contain any special character like ";:.,".
Throws:
java.lang.Exception
java.io.IOException