ReportingEngineBuildReport Method (Document, Object, String)

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

Namespace:  Aspose.Words.Reporting
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.2
Syntax
public bool BuildReport(
	Document document,
	Object dataSource,
	string dataSourceName
)

Parameters

document
Type: Aspose.WordsDocument
A template document to be populated with data.
dataSource
Type: SystemObject
A data source object.
dataSourceName
Type: SystemString
A name to reference the data source object in 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 the data source's members and the data source object itself in the template. If you are not going to reference the data source object itself, you can omit dataSourceName passing null or use the BuildReport(Document, Object) overload.

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