# CSV Data Source

This topic demonstrates how to use the CSV data provider in a Fixed Page Layout report using ActiveReports.

## Content



The CSV Data Source sample demonstrates how to use the CSV data provider in a Page Report.

![Report bound to CSV Data Source](https://cdn.mescius.io/document-site-files/images/b298aea2-8cb8-4a0f-be88-4f54aa263ebd/images/csvdatasourcesample_pagerdl.png)

### Sample Location

**Visual Basic.NET**

[https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/CSVDataSource/VB.NET](https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/CSVDataSource/VB.NET)

**C#**

[https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/CSVDataSource/C#](https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/CSVDataSource/C%23)

### Run-Time Features

When you run this sample, the **CSV Data Source** window appears. Select a radio button to specify the data format of the CSV file to use for the data source, and click the Run button to show the report in the viewer. You can choose from the following CSV data formats:

*   Delimited Data
    *   No header, column separator is comma
    *   Header exists, column separator is Tab
*   Fixed width Data
    *   No header
    *   Header exists

### Project Details

### MainForm

This is the main form that appears when you run this sample. It uses the ActiveReports Viewer control to display the report at run time, and radio buttons to select the data source settings.

Right-click the form and select **View Code** to see how to set the data source settings in the connection string, and how to show the report at run time.

### StockList.rdlx

This is the report that gets displayed in the Viewer at run time. The report is bound to the StockList dataset of the CSV data provider and uses a [Table](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/table) data region and [TextBox](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/textbox) controls to display the stock list. The stock list is grouped by CustomerID value.