CSV Reports
Quick Start VB.NET

CSV Reader

 

Dim csvReader As New CsvReader() 'Trial Mode
'Dim csvReader As New CsvReader("place user name here", "place license key here") 'License Mode

'Create a test file
Dim filePath As String = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "testReader.csv")
File.WriteAllText(filePath, "Name,Birthdate" & vbCrLf & "John,5/30/2013")

Dim results As List(Of TestMapper) = csvReader.CsvFileToObjectList(Of TestMapper)(filePath)
Console.WriteLine(results(0).Name)

 

CSV Writer

 

Dim csvWriter As New CsvWriter() 'Trial Mode
'Dim csvWriter As New CsvWriter("place user name here", "place license key here"); 'License Mode

Dim persons As New List(Of Person)()
Dim person1 As New Person()
person1.FirstName = "John"
person1.LastName = "Smith"
person1.BirthDate = Date.Now.AddDays(-1)
persons.Add(persn1)

Dim filePath As String = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "testWriter.csv")
csvWriter.ClassListToCsvFile(persons,filePath)

Console.WriteLine(File.ReadAllText(filePath))