ActiveReports 14 .NET Edition
ActiveReports 14 User Guide / Samples and Walkthroughs / Samples / Samples / Advanced / Page and RDL Reports / Custom Data Provider
In This Topic
    Custom Data Provider
    In This Topic

    The Custom Data Provider sample demonstrates how to create a project that use a custom data provider and how to pull data from a comma separated value (CSV) file. This sample is part of the ActiveReports Professional Edition.

    Custom Data Provider

    Custom Data Provider

    Sample Location

    Visual Basic.NET

    ..\Samples14\Advanced\PageAndRDL\CustomDataProvider\VB.NET

    C#

    ..\Samples14\Advanced\PageAndRDL\CustomDataProvider\C#

    Details

    When you run this sample, a DesignerForm displaying the DemoReport.rdlx report in ActiveReports Designer and a HelperForm explaining the steps to connect a report to the comma separated value (CSV) file appears.

    In the ActiveReports Designer, you can add a dataset with a comma separated values (CSV) file. For adding this file,in the Report Explorer, expand the DataSources node, right-click the node for the data source and select Add DataSet. In the DataSet dialog that appears, under Query section, go to the Query String field and click the drop-down arrow to display the custom query editor. In the custom query editor, click the Select CSV File button and select the Categories.csv file kept within the project.

    Go to the Preview tab of the Designer to view the report with the data pulled from the custom data provider.

    The sample consists of following three projects:

    CustomDataProvider: It contains following items:

    CustomDataProviderUI: It contains following items:

    CustomDataProviderUITest: It contains following items:

    See Also