public class ReportBuilderOptions
extends java.lang.Object
Examples:
Shows how to populate document with data.
public void buildReportData() throws Exception {
// There is a several ways to populate document with data:
String doc = getMyDir() + "Reporting engine template - If greedy (Java).docx";
AsposeData obj = new AsposeData();
{
obj.setList(new ArrayList<>());
{
obj.getList().add("abc");
}
}
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilderOptions options = new ReportBuilderOptions();
options.setOptions(ReportBuildOptions.ALLOW_MISSING_MEMBERS);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.2.docx", obj, options);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.3.docx", SaveFormat.DOCX, obj);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.4.docx", SaveFormat.DOCX, obj, options);
}
public static class AsposeData {
public ArrayList<String> getList() {
return mList;
}
;
public void setList(ArrayList<String> value) {
mList = value;
}
;
private ArrayList<String> mList;
}
| Constructor and Description |
|---|
ReportBuilderOptions()
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
KnownTypeSet |
getKnownTypes()
Gets an unordered set (i.e.
|
java.lang.String |
getMissingMemberMessage()
Gets a string value printed instead of a template expression that represents a plain reference to a missing member of an object.
|
int |
getOptions()
Gets a set of flags controlling behavior of this
ReportingEngine instance while building a report. |
void |
setMissingMemberMessage(java.lang.String value)
Sets a string value printed instead of a template expression that represents a plain reference to a missing member of an object.
|
void |
setOptions(int value)
Sets a set of flags controlling behavior of this
ReportingEngine instance while building a report. |
public ReportBuilderOptions()
public int getOptions()
ReportingEngine instance while building a report.
Examples:
Shows how to populate document with data.
public void buildReportData() throws Exception {
// There is a several ways to populate document with data:
String doc = getMyDir() + "Reporting engine template - If greedy (Java).docx";
AsposeData obj = new AsposeData();
{
obj.setList(new ArrayList<>());
{
obj.getList().add("abc");
}
}
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilderOptions options = new ReportBuilderOptions();
options.setOptions(ReportBuildOptions.ALLOW_MISSING_MEMBERS);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.2.docx", obj, options);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.3.docx", SaveFormat.DOCX, obj);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.4.docx", SaveFormat.DOCX, obj, options);
}
public static class AsposeData {
public ArrayList<String> getList() {
return mList;
}
;
public void setList(ArrayList<String> value) {
mList = value;
}
;
private ArrayList<String> mList;
}
ReportingEngine instance while building a report. The returned value is a bitwise combination of ReportBuildOptions constants.public void setOptions(int value)
ReportingEngine instance while building a report.
Examples:
Shows how to populate document with data.
public void buildReportData() throws Exception {
// There is a several ways to populate document with data:
String doc = getMyDir() + "Reporting engine template - If greedy (Java).docx";
AsposeData obj = new AsposeData();
{
obj.setList(new ArrayList<>());
{
obj.getList().add("abc");
}
}
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilderOptions options = new ReportBuilderOptions();
options.setOptions(ReportBuildOptions.ALLOW_MISSING_MEMBERS);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.2.docx", obj, options);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.3.docx", SaveFormat.DOCX, obj);
ReportBuilder.buildReport(doc, getArtifactsDir() + "LowCode.BuildReportWithObject.4.docx", SaveFormat.DOCX, obj, options);
}
public static class AsposeData {
public ArrayList<String> getList() {
return mList;
}
;
public void setList(ArrayList<String> value) {
mList = value;
}
;
private ArrayList<String> mList;
}
value - A set of flags controlling behavior of this ReportingEngine instance while building a report. The value must be a bitwise combination of ReportBuildOptions constants.public java.lang.String getMissingMemberMessage()
Remarks:
The property should be used in conjunction with the ReportBuildOptions.ALLOW_MISSING_MEMBERS option. Otherwise, an exception is thrown when a missing member of an object is encountered.
The property affects only printing of a template expression representing a plain reference to a missing object member. For example, printing of a binary operator, one of which operands references a missing object member, is not affected.
The value of this property cannot be set to null.
public void setMissingMemberMessage(java.lang.String value)
Remarks:
The property should be used in conjunction with the ReportBuildOptions.ALLOW_MISSING_MEMBERS option. Otherwise, an exception is thrown when a missing member of an object is encountered.
The property affects only printing of a template expression representing a plain reference to a missing object member. For example, printing of a binary operator, one of which operands references a missing object member, is not affected.
The value of this property cannot be set to null.
value - A string value printed instead of a template expression that represents a plain reference to a missing member of an object.public KnownTypeSet getKnownTypes()
Class objects which fully or partially qualified names can be used within report templates processed by this engine instance to invoke the corresponding types' static members, perform type casts, etc.