We just bought Aspose Cells .NET to create Excel files in an ASP.NET application. Now we have to convert a CSV string to a PDF file (without using a text file on disk). Here is my sample code:
//Sample
String csv = "Col1;Col2;Col3;\n"
+ "53;34;23;\n"
+ "33;123;221;\n"
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
TxtLoadOptions options = new TxtLoadOptions(LoadFormat.CSV);
options.Separator = Convert.ToChar(";");
Cells cells = worksheet.Cells;
//Import not from file but from string
cells.ImportCSV(csv, options, 0, 0);
workbook.Save("test.xlsx", FileFormatType.Xlsx, SaveType.OpenInExcel, this.Response);
Good to know that it sorts our your issue now. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.