+ 1

How to identify ranges of merged cells in excel using c#

How to identify ranges of merged cells in excel using c#

23rd Jan 2018, 4:51 PM
Himanshu Pandey
Himanshu Pandey - avatar
3 Antworten
0
Great that you succeeded. Which method did you use to read the excel file. The microsoft.interop ?
23rd Jan 2018, 8:41 PM
sneeze
sneeze - avatar
0
yes.
31st Jan 2018, 5:48 PM
Himanshu Pandey
Himanshu Pandey - avatar
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/
31st Jan 2018, 9:42 PM
sneeze
sneeze - avatar