Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: How to read two tables from Excel with C#?

$
0
0
Hi all. I have an exercise, to create a program with C# Windows Form, which could convert TWO tables from Excel to a single XML document. I have been writing this problem in about 7 forums (for example: http://www.dreamincode.net/forums/topic/345648-multiple-tables-conversion-from-excel-xls-file-to-xml-with-openxml/), but with no futher luck. But I get a comment, which advices me to use ClosedXML as my main library (I used pure OpenXML, which is very hard to learn and work with).

I was reading a documentation in here, but I didn't really get it, how to actually read two tables in Excel with C# using ClosedXML? My spreadhseet lokks like this:

Image

I need to read those TWO tables in C#, and when, basically, convert them to XML file.

So the question is how to read those two tables from Excel using C# ClosedXML library? Thank you.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>