CrystalReportsIntegration
--------------------------------
This sample shows how to create a report using C1DataObjects data with Crystal Reports.

After setting up a C1ExpressConnection and two C1ExpressTable components,
select "Save XML Schema" from the C1ExpressConnection context menu and save the data set schema in a file
(the file is saved in the sample project directory is DataSetSchema.xml, but you
can use any file name you want). This is a schema of an ADO.NET data set containing a table
for each table view in the C1DataObjects data set definition.

Creating a report at design time (CrystalReport1.rpt) in the Report Expert or in the
Database Expert, select More Data Sources | ADO.NET (XML) and enter the path to the saved
schema file in the ADO.NET (XML) dialog. Then you will be able to view and edit links
(default links are based on view relationships from the C1DataObjects data set),
select fields and build the report.

To set the report data source at run time and attach the report to the viewer,
the following code is used:

<code>
    Dim report As CrystalReport1 = New CrystalReport1()
    report.SetDataSource(C1ExpressConnection1.GetExportDataSet())
    crystalReportViewer1.ReportSource = report
</code>

The C1ExpressConnection.GetExportDataSet methods returns an ADO.NET DataSet containing 
a table for C1ExpressTable (and a relation for each relation in C1ExpressConnection).
This ADO.NET data set is used here as the run-time data source for the report.
