You're passing a string to InsertData. You need to pass some kind of collection to it (an array, list, data table, linq query, or anything that implements IEnumerable). Take a look at: https://closedxml.codeplex.com/wikipage?title=Inserting%20Data&referringTitle=Documentation
↧