Created
June 28, 2024 22:21
-
-
Save conholdate-gists/5779f2fe537590765b4a280e41eab857 to your computer and use it in GitHub Desktop.
Convert TXT to Excel Worksheet XLSX XLS in C# .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create TxtLoadOptions class object | |
Aspose.Cells.TxtLoadOptions options = new Aspose.Cells.TxtLoadOptions(); | |
// Load the TXT file | |
Workbook wb = new Workbook("input.txt", options); | |
// Save as XLSX | |
wb.Save("Excel.xlsx", Aspose.Cells.SaveFormat.Xlsx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment