ActiveReports 8 > ActiveReports User Guide > How To > Page Report How To > Work with Data > Add a Dataset |
In a page report, once you connect your report to a data source, in order to get a list of fields to use in the report, you need to add a dataset. Use the following instructions to add a dataset to the report.
These steps assume that you have already added a Page Report template and connected it to a data source. See Adding an ActiveReport to a Project and Connect to a Data Source for further information.
Note: In case you are using an XML data source provider, you have to provide an XML path on the Query page and generate fields using XPath expressions on the Fields page of the DataSet dialog. See the following example for details.
Query and Field settings for XML Data The XML provider supports the use of XPath 1.0 in building queries and selecting Fields. Following is an example of how the query string and fields are set with an XMLData connection string. Connection String Example of an XmlData connection string. Query String Set the query like Fields Once the query is set, build the Fields collection with two fields that contain the following name and value pairs: See Use Fields in Reports to understand fields further. |