ReportBuilderOptions.InlineErrorMessages
ReportBuilderOptions InlineErrorMessages property. 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.
ReportBuilderOptions.InlineErrorMessages property
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.
public bool InlineErrorMessages { get; set; }
Examples
Shows how to enable in-line error messages.
string templateString = "Pi=<<[Math.Round(pi, 2)]>>";
ReportBuilderContext context = new ReportBuilderContext();
context.DataSources.Add(System.Math.PI, "pi");
context.ReportBuilderOptions.InlineErrorMessages = true;
ReportBuilder.Create(context)
.From(new MemoryStream(Encoding.UTF8.GetBytes(templateString)))
.To(ArtifactsDir + "ReportBuilderOptions.InlineErrorMessages.docx")
.Execute();
See Also
- class ReportBuilderOptions
- namespace Wordize.Reporting
- assembly Wordize