+ 1
How to identify ranges of merged cells in excel using c#
How to identify ranges of merged cells in excel using c#
3 Respostas
0
Great that you succeeded.
Which method did you use to read the excel file.
The microsoft.interop ?
0
yes.
0
Range has a boolean property MergeCells
This indicates if cell has been merged.
if (objRange.MergeCells){ data[col - 1] = Convert.ToString(((Range)objRange.MergeArea[1,1]).Text).Trim();}else{ data[col - 1] = Convert.ToString(objRange.Text).Trim();}
http://www.c-sharpcorner.com/UploadFile/17e8f6/reading-merged-cell-from-excel-using-microsoft-office-intero/