ExcelReportsGenerator generator = new ExcelReportsGenerator(); //Trial Mode
//ExcelReportsGenerator generator = new ExcelReportsGenerator("place user name here", "place license key here"); //License Mode
string csvString = @"FirstName,LastName,Married,NumberOfChildren,Salary,BirthDate
John,Smith,True,3,""$60,000"",12/15/1977
Joe,Jones,False,0,""$30,000"",6/25/1993";
File.WriteAllText("ExampleInput.csv", csvString);
using (FileStream inputStream = new FileStream("ExampleInput.csv", FileMode.Open, FileAccess.Read))
{
using (FileStream outputStream = new FileStream("GenerateFromCsvStreamExample.xlsx",FileMode.Create))
{
generator.GenerateFromCsvStream(inputStream, "Employees", outputStream);
}
}