Export Excel to text

Hi I need to export an Excel spreadsheet to a text representation. Is there an easy way to do this? If not can you tell me how I can access the value or calculated value of each used cell in a worksheet so I can build up my own export.

TIA

Nic

2 Replies

PK Prakash Kumar D Syncfusion Team July 5, 2018 01:10 PM UTC

Hi Nic, 
 
Thank you for contacting Syncfusion products. 
 
Please find the details below.  
  
Queries  
Details  
I need to export an Excel spreadsheet to a text representation. Is there an easy way to do this? 
Yes, you achieve your requirement in XlsIO by saving it as space separated text document. We have shared the sample for your reference. 

 
If not, can you tell me how I can access the value or calculated value of each used cell in a worksheet, so I can build up my own export. 
You can access the value and calculated value of a cell by using the following code example. 
 
Code Snippet: 
//Accessing cell’s value or calculate value 
worksheet.EnableSheetCalculations(); 
string value = worksheet["A1"].Value; 
string calValue = worksheet["A2"].CalculatedValue; 
  
  
 
Regards, 
Prakash Kumar 



PG Pon Geetha A J Syncfusion Team July 6, 2018 03:53 AM UTC

Thanks Prakash, 
 
That was a beautifully simple solution. 
 
Nic 


Loader.
Up arrow icon