ReportBuilderOptions Class

Wordize.Reporting.ReportBuilderOptions class. Represents options for the LINQ Reporting Engine functionality.

ReportBuilderOptions class

Represents options for the LINQ Reporting Engine functionality.

public class ReportBuilderOptions

Constructors

NameDescription
ReportBuilderOptions()The default constructor.

Properties

NameDescription
AllowMissingMembers { get; set; }Specifies that missing object members should be treated as null literals by the engine. This option affects only access to instance (that is, non-static) object members and extension methods. If this option is not set, the engine throws an exception when encounters a missing object member.
InlineErrorMessages { get; set; }Specifies that the engine should inline template syntax error messages into output documents. If this option is not set, the engine throws an exception when encounters a syntax error.
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.
RemoveEmptyParagraphs { get; set; }Specifies that the engine should remove paragraphs becoming empty after template syntax tags are removed or replaced with empty values.
RespectJpegExifOrientation { get; set; }Specifies that the engine should use EXIF ​​image orientation values to appropriately rotate inserted JPEG images.
UpdateFieldsSyntaxAware { get; set; }Specifies that the engine should ignore template syntax in field results and update fields after a report is built.

Examples

Shows how to fill template with data from CSV data source loaded from file using LINQ Reporting engine.

CsvDataLoadOptions csvLoadOptions = new CsvDataLoadOptions();
csvLoadOptions.QuoteChar = '\'';
csvLoadOptions.CommentChar = '|';
csvLoadOptions.Delimiter = ',';
csvLoadOptions.HasHeaders = true;
CsvDataSource ds = new CsvDataSource(MyDir + "ReportingData.csv", csvLoadOptions);

ReportBuilderOptions reportBuilderOptions = new ReportBuilderOptions();
reportBuilderOptions.AllowMissingMembers = true;

using (Stream input = File.OpenRead(MyDir + "ReportingTemplateForeach.docx"))
using (Stream output = File.Create(ArtifactsDir + "ReportingForeachCsvDataSource.pdf"))
{
    ReportBuilder.BuildReport(input, output, SaveFormat.Pdf, ds, "data", reportBuilderOptions);
}

See Also