ReportBuilderOptions

ReportBuilderOptions class

Represents options for the LINQ Reporting Engine functionality.

public class ReportBuilderOptions

Constructors

NameDescription
ReportBuilderOptions()The default constructor.

Properties

NameDescription
KnownTypes { get; }Gets an unordered set (i.e. a collection of unique items) containing Type 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.
MissingMemberMessage { get; set; }Gets or sets a string value printed instead of a template expression that represents a plain reference to a missing member of an object. The default value is an empty string.
Options { get; set; }Gets or sets a set of flags controlling behavior of this ReportingEngine instance while building a report.

Examples

Shows how to populate document with data.

public void BuildReportData()
{
    // There is a several ways to populate document with data:
    string doc = MyDir + "Reporting engine template - If greedy.docx";

    AsposeData obj = new AsposeData { List = new List<string> { "abc" } };

    ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.1.docx", obj);
    ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.2.docx", obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
    ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.3.docx", SaveFormat.Docx, obj);
    ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.4.docx", SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}

public class AsposeData
{
    public List<string> List { get; set; }
}

See Also