|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.reporting.MailMerge
public class MailMerge
Field Summary | |
---|---|
MergeFieldEventHandler |
MergeField
Occurs during mail merge when a text merge field processing. |
MergeGroupEventHandler |
MergeGroup
Occurs during mail merge when group/table processing. |
MergeImageFieldEventHandler |
MergeImageField
Occurs during mail merge when an image merge field processing. |
Method Summary | |
---|---|
void |
execute(java.lang.Iterable dataSource)
Performs mail merge operation. |
void |
execute(java.lang.String[] fieldNames,
java.lang.String[] fieldValues)
Performs mail merge operation. |
void |
executeGroup(MailMergeDataTable dataSource)
Performs mail merge operation. |
void |
executeWidthNestedRegion(MailMergeDataSet dataSource,
java.util.List<java.util.Map.Entry> filters)
Performs mail merge operation. |
void |
executeWidthNestedRegion(java.lang.String xmlFile,
java.util.List<java.util.Map.Entry> commands)
Executes the nested region. |
void |
executeWidthRegion(java.lang.String xmlFile)
Performs Mail Merge within a region from a DataTable. |
boolean |
getClearFields()
Gets a value indicating whether [clear fields]. |
boolean |
getClearGroupTag()
Gets a value indicating whether [clear group tag]. |
protected Document |
getDocument()
Gets the document. |
boolean |
getHideEmptyGroup()
Gets a value indicating whether to remove groups which contain empty merge fields. |
boolean |
getHideEmptyParagraphs()
Gets a value indicating whether to remove paragraphs which contain empty merge fields. |
MailMergeMainDocumentType |
getMailMergeMainDocumentType()
|
java.lang.String[] |
getMergeFieldNames()
Returns a collection of mergefield names found in the document. |
java.lang.String[] |
getMergeFieldNames(java.lang.String groupName)
Gets the merge field names. |
java.lang.String[] |
getMergeGroupNames()
Gets the merge group names. |
void |
setClearFields(boolean value)
Sets a value indicating whether [clear fields]. |
void |
setClearGroupTag(boolean value)
Sets a value indicating whether [clear group tag]. |
void |
setHideEmptyGroup(boolean value)
Sets a value indicating whether to remove groups which contain empty merge fields. |
void |
setHideEmptyParagraphs(boolean value)
Sets a value indicating whether to remove paragraphs which contain empty merge fields. |
void |
setMailMergeMainDocumentType(MailMergeMainDocumentType value)
|
Field Detail |
---|
public MergeFieldEventHandler MergeField
public MergeImageFieldEventHandler MergeImageField
public MergeGroupEventHandler MergeGroup
Method Detail |
---|
public boolean getClearFields()
public void setClearFields(boolean value)
value
- if it clears the fields, set to true.public MailMergeMainDocumentType getMailMergeMainDocumentType()
public void setMailMergeMainDocumentType(MailMergeMainDocumentType value)
public boolean getClearGroupTag()
public void setClearGroupTag(boolean value)
value
- if it clears group tag, set to true.protected Document getDocument()
public boolean getHideEmptyParagraphs()
public void setHideEmptyParagraphs(boolean value)
value
- The value.public boolean getHideEmptyGroup()
public void setHideEmptyGroup(boolean value)
value
- the value.public void execute(java.lang.String[] fieldNames, java.lang.String[] fieldValues)
fieldNames
- the field names.fieldValues
- the field values.
java.lang.Exception
- exceptionpublic void execute(java.lang.Iterable dataSource)
dataSource
- the data source.
java.lang.Exception
public void executeWidthRegion(java.lang.String xmlFile)
xmlFile
- the xml file.
java.lang.Exception
public void executeWidthNestedRegion(MailMergeDataSet dataSource, java.util.List<java.util.Map.Entry> filters)
dataSource
- the data source.filters
- the filters.
java.lang.Exception
public void executeWidthNestedRegion(java.lang.String xmlFile, java.util.List<java.util.Map.Entry> commands)
xmlFile
- the xml file.commands
- the commands.public java.lang.String[] getMergeFieldNames()
public java.lang.String[] getMergeFieldNames(java.lang.String groupName)
groupName
- the group name.
public java.lang.String[] getMergeGroupNames()
public void executeGroup(MailMergeDataTable dataSource)
dataSource
- The MailMergeDataTable.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |