Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Reading the sentence from excel file and write in TSV in same style.

For reading sentence using :-
C#
ExcelReaderFactory.CreateOpenXmlReader(fileContent.InputStream); 
method
e.g.
input :-Hello , How are you
Output :Hello , How are you
The format(style) of text should be remain same as input.

What I have tried:

Gone through some articles from google but not able to resolve my issues.
Posted
Updated 15-Dec-19 0:57am
v2
Comments
CHill60 23-May-17 9:04am    
By "TSV" do you mean "CSV" - i.e. a comma-separated text file?
If so then you cannot copy the formatting.
If TSV does not mean CSV then what is it exactly?
Sudheer Kumar Tiwari 23-May-17 23:59pm    
Hi CHill, It's TSV( Tab Separated Values) tab-delimited file
CHill60 24-May-17 5:38am    
Same answer I'm afraid. TSV and CSV are just plain text files and cannot store the formatting that was present in the excel spreadsheet.
A method I've used in the past has been to use XML to represent the data columns and included formatting descriptions within the XML nodes. I'm not sure that that would lend itself to picking up formatting at the cell level though. Why not just leave it as an Excel file if you want the formatting?
Maciej Los 26-May-17 11:00am    
My virtual 5!
[no name] 23-May-17 9:27am    
Text is neither bold nor underlined.

1 solution

I'd suggest to read the documentation from: GitHub - ExcelDataReader/ExcelDataReader: Lightweight and fast library written in C# for reading Microsoft Excel files[^] or ask a question on that GitHub repository.
 
Share this answer
 
Comments
Richard MacCutchan 15-Dec-19 9:17am    
A little late Maciej. :(
Maciej Los 15-Dec-19 10:52am    
Oouupss...
I paid not much attention on the date of creation of question...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900