ReportingEngineBuildReport Method (Document, Object, String)

Populates the specified template document with data from the specified sources making it a ready report.

Namespace:  Aspose.Words.Reporting
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool BuildReport(
	Document document,
	Object[] dataSources,
	string[] dataSourceNames
)

Parameters

document
Type: Aspose.WordsDocument
A template document to be populated with data.
dataSources
Type: SystemObject
An array of data source objects.
dataSourceNames
Type: SystemString
An array of names to reference the data source objects within the template.

Return Value

Type: Boolean
A flag indicating whether parsing of the template document was successful. The returned flag makes sense only if a value of the Options property includes the InlineErrorMessages option.
Remarks

Using this overload you can reference multiple data source objects and their members in the template. The name of the first data source can be omitted (i.e. be an empty string or null) if you are going to reference the data source's members but not the data source object itself. Names of the other data sources must be specified and unique.

If you are going to use a single data source, consider using of BuildReport(Document, Object) and BuildReport(Document, Object, String) overloads instead.

A data source object can be of one of the following types:

For information on how to work with data sources of different types in template documents, see template syntax reference (https://docs.aspose.com/display/wordsnet/Template+Syntax).

See Also