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.2
public bool BuildReport(
	Document document,
	Object[] dataSources,
	string[] dataSourceNames


Type: Aspose.WordsDocument
A template document to be populated with data.
Type: SystemObject
An array of data source objects.
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.

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 (

See Also