ReportBuilderOptions.UpdateFieldsSyntaxAware

ReportBuilderOptions UpdateFieldsSyntaxAware property. Specifies that the engine should ignore template syntax in field results and update fields after a report is built.

ReportBuilderOptions.UpdateFieldsSyntaxAware property

Specifies that the engine should ignore template syntax in field results and update fields after a report is built.

public bool UpdateFieldsSyntaxAware { get; set; }

Examples

Shows how to instruct the engine to ignore template syntax in field results and update fields after a report is built.

JsonDataSource ds = new JsonDataSource(MyDir + "ReportingData.json");

ReportBuilderContext context = new ReportBuilderContext();
context.DataSources.Add(ds, "data");
context.ReportBuilderOptions.UpdateFieldsSyntaxAware = true;

ReportBuilder.Create(context)
    .From(MyDir + "ReportingTemplateForeach.docx")
    .To(ArtifactsDir + "ReportBuilderOptions.UpdateFieldsSyntaxAware.docx")
    .Execute();

See Also