Answer the question
In order to leave comments, you need to log in
How can I transfer data from a 2-dimensional array to an Excel spreadsheet in C#?
Hello.
For example, there is such a 2-dimensional array:
string [,] array = {
{ "кошка", "стрекоза", "собака", "слон" },
{ "бабочка", "гусеница", "бегемот", "обезьяна" },
{ "жираф", "синица", "воробей", "волк" }
{ "жук", "муравей", "снеговик", "медведь" }
{ "ящерица", "енот", "заяц", "лиса" }
};
Answer the question
In order to leave comments, you need to log in
The question needs clarification... do you want to serialize some data into an xls file? There is a crutch way, but it works - generate an html table with this data and save it to a file with the xls extension. If you want something more tricky - https://msdn.microsoft.com/en-us/library/ms173186(... Well, here's a suitable article
The simplest and most reliable solution is to export data to CSV , Excel can open files in this format (you can import data from them into an existing workbook)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question