Greetings
Dear members, I've been checking out on internet, however, i didn't a single similar question, so i thought to ask it, may come handy for someone else, so here i go:
I have this giant excel files with 2 columns and +800,000 rows, the process is like this:
I am Filtering based on the second column(so there are many similar data on second columns), then after filter, i copy the first column and paste it on a notepad file(.txt) and change its name to second's column filter.
[Summery]
Input: Excel File
Output: multiple Notepad Files .txt
if i do this by hand would take hours and hours, so i thought maybe you can point me into a right direction, then rest i do myself.
Thank you in advance,

Alex SmithRank #4,089 · 366 reputationPosted Sep 2, 2015, 12:40 AM EDT
Workbook workbook = new Workbook();
workbook.LoadFromFile(@"..\ExceltoTxt.xls");
Worksheet sheet = workbook.Worksheets[0];
sheet.SaveToFile("ExceltoTxt.txt", " ", Encoding.UTF8);
Karthikeyan KRank #554 · 4.4K reputationPosted Aug 25, 2015, 7:27 PM EDT
Kindly accept answer
Karthikeyan K
Munesh SharmaRank #174 · 13.9K reputationPosted Aug 25, 2015, 8:02 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Sep 2, 2015, 2:37 AM EDT
Masoud A30 reputationPosted Aug 26, 2015, 2:35 PM EDT
Kip Hackman61 reputationPosted Jun 22, 2023, 2:17 PM EDT
I know this is an older post, but for those still looking for this functionality, you can use the LEADTOOLS Document SDK technology in your application.
https://www.leadtools.com/sdk/products/document
You can leverage the DocumentConverter class, to convert Excel files to TXT files.
Here is some sample code:
string file = @"FILE PATH TO INPUT MS EXCEL FILE"; string outFile = @"FILE PATH TO OUTPUT TXT FILE"; using (DocumentConverter docConverter = new DocumentConverter()) { DocumentConverterJobData jobData = DocumentConverterJobs.CreateJobData(file, outFile, DocumentFormat.Text); jobData.JobName = "Convert to TXT Job"; DocumentConverterJob job = docConverter.Jobs.CreateJob(jobData); docConverter.Jobs.RunJob(job); if (job.Errors.Count > 0) foreach (var error in job.Errors) Console.WriteLine($"Error during conversion: {error.Error.Message}\n"); else Console.WriteLine($"Successfully Converted {file} to {outFile}\n"); }