TeamNet Data File Export is a library written in c# for exporting data to various file formats without external dependencies. The library currently supports writing to DBF and CSV files.

The design of the library is oriented toward easily exporting data to files from various data sources like DataSet or list of custom objects.

Sample usage

The following exports a DBF file from data in an existing DataSet:

    DataFileExport
        .CreateDbf(sourceDataSet)
        .AddTextField("AString", 30)
        .AddNumericField("ANumber", 10, 0)
        .Write(filePath);

Writing CSV file instead is as simple as changing CreateDbf with CreateCsv.
Last edited May 11 at 1:55 PM by aleris, version 7

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987