CsvDataSource Class |
Namespace: Aspose.Words.Reporting
The CsvDataSource type exposes the following members.
Name | Description | |
---|---|---|
![]() | CsvDataSource(Stream) |
Creates a new data source with data from a CSV stream.
|
![]() | CsvDataSource(String) |
Creates a new data source with data from a CSV file.
|
![]() | CsvDataSource(Stream, CsvDataLoadOptions) |
Creates a new data source with data from a CSV stream.
|
![]() | CsvDataSource(String, CsvDataLoadOptions) |
Creates a new data source with data from a CSV file.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
To access data of the corresponding file or stream while generating a report, pass an instance of this class as a data source to one of ReportingEngine.BuildReport overloads.
In template documents, a CsvDataSource instance should be treated in the same way as if it was a DataTable instance. For more information, see template syntax reference (https://docs.aspose.com/display/wordsnet/Template+Syntax).
Data types of comma-separated values are determined automatically upon their string representations. So in template documents, you can work with typed values rather than just strings. The engine is capable to automatically recognize values of the following types:
Note that for automatic recognition of data types to work, string representations of comma-separated values should be formed using invariant culture settings.