c# csv DataSource

Printed From: Crystal Reports Book — Forum Name: Technical Questions

Hi,

how should a csv-File DataSource look like? My problem ist how to
distiguish Header, Table and Footer fields?

Now my CSV-file just look like this:

number,part,count
1234,test1,10
1235,test2,20
12336,test3,30

Thanks
Best regards
Rene
In a csv file, if field names are included, the first row of the file will always be the field names and any rows after that will be the data.

In some formats of csv, all strings will be surrounded by quotes as well - this is particularly important when the string data includes commas because otherwise it will be assumed that the comma indicates a new field.

-Dell
Thanks a lot

best regards