java.lang.Objectcom.aspose.words.ReportingEngine
public class ReportingEngine
Constructor Summary |
---|
ReportingEngine()
Initializes a new instance of this class. |
Property Getters/Setters Summary | ||
---|---|---|
KnownTypeSet | getKnownTypes() | |
Gets an unordered set (i.e. a collection of unique items) containing |
||
static boolean | getUseReflectionOptimization() | |
static void | setUseReflectionOptimization(boolean value) | |
Gets or sets a value indicating whether invocations of custom type members performed via reflection API are optimized using dynamic class generation or not. The default value is true. |
Method Summary | ||
---|---|---|
void | buildReport(Document document, java.lang.Object dataSource) | |
Populates the specified template document with the data from the specified source. | ||
void | buildReport(Document document, java.lang.Object dataSource, java.lang.String dataSourceName) | |
Populates the specified template document with the data from the specified source. |
Constructor Detail |
---|
public ReportingEngine()
Property Getters/Setters Detail |
---|
getKnownTypes | |
public KnownTypeSet getKnownTypes() |
getUseReflectionOptimization/setUseReflectionOptimization | |
public static boolean getUseReflectionOptimization() / public static void setUseReflectionOptimization(boolean value) |
Method Detail |
---|
buildReport | |
public void buildReport(Document document, java.lang.Object dataSource) throws java.lang.Exception |
Using this overload you can reference the data source's members in the template document, but you can not
reference the data source object itself. You should use
Note, that data sources of the following types are processed in a special way by this method.
1. A
2. A
3. A
4. An
5. An
Note, that you should not use enumerations of items of the above types as data sources as well as
Data source objects of other types are processed in a common way. That is, you can normally access their members and apply operations on them without any restrictions.
document
- A template document.dataSource
- A data source object.buildReport | |
public void buildReport(Document document, java.lang.Object dataSource, java.lang.String dataSourceName) throws java.lang.Exception |
Using this overload you can reference the data source's members and the data source object itself in the template.
If you are not going to reference the data source object itself, you can omit dataSourceName
passing null or use
Note, that data sources of the following types are processed in a special way by this method.
1. A
2. A
3. A
4. An
5. An
Note, that you should not use enumerations of items of the above types as data sources as well as
Data source objects of other types are processed in a common way. That is, you can normally access their members and apply operations on them without any restrictions.
document
- A template document.dataSource
- A data source object.dataSourceName
- A name to reference the data source object in the template.