Merging Cells in Excel using C#

后端 未结 11 1131
耶瑟儿~
耶瑟儿~ 2020-12-24 01:32

I have a database which contains 5 tables. Each table contains 24 rows and each row contains 4 columns.

I want to display these records in Excel sheet. The heading o

11条回答
  •  滥情空心
    2020-12-24 02:01

    Using the Interop you get a range of cells and call the .Merge() method on that range.

    eWSheet.Range[eWSheet.Cells[1, 1], eWSheet.Cells[4, 1]].Merge();
    

提交回复
热议问题