简体   繁体   中英

How to implement Generic Column Name in c#.net

I have 3 excel sheets, all 3 has same kind of data but the column names differs in each excel sheet. How can i design my class to handle all 3 excel sheets? in c#.net.

I suggest you use excelpackage (available in nuget) to read all sheets. (See: https://excelpackage.codeplex.com/wikipage?title=Reading%20data%20from%20an%20Excel%20spreadsheet&referringTitle=Home )

You can then import rows sheet by sheet

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM