Code:
ReportingEngine engine = new ReportingEngine();
engine.BuildReport(doc, dataSource)
Query1:
When error occurs in template, It stops its execution. Can we get all errors of template in one go ?
Query2:
What are the other features we have for expectation handling apart from ReportBuildOptions.InlineErrorMessages feature
@gauravgarg04
A template structure can be complex at times, so a single error can make the rest of template content invalid. That is why, the engine stops its execution once it encounters the first error and there is no way to get all errors at once.
By default, the engine throws an exception on encountering a template syntax error. When ReportBuildOptions.InlineErrorMessages
is applied, the engine writes an error message to a corresponding template document in place where the error appears. Could you please elaborate, what else would you expect?