ReportingEngineBuildReport Method (Document, Object)

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
)

Parameters

document
Type: Aspose.WordsDocument
A template document to be populated with data.
dataSource
Type: SystemObject
A data source object.

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 in the template document, but you cannot reference the data source object itself. You should use the BuildReport(Document, Object, String) overload to achieve this.

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