This project has moved and is read-only. For the latest updates, please go here.

C# EPPlus OpenXML count rows

Jan 23, 2011 at 11:00 PM

With EPPlus and OpenXML does anyone know the syntax on how to count the rows?

Say my worksheet is called "worksheet"

int numberRows = worksheet.rows.count()? or worksheet.rows.dimension

I'm cetainly interested in the answer, but how to find the answer would be cool to, like "Go to definition" and look for this or that, etc.


Jan 23, 2011 at 11:53 PM

Hi, and welcome to codeplex.

Please use rows.dimension

As for documentation, please check out:

Working example are also available in our downloads.

- Michael T.

Feb 28, 2011 at 2:37 PM

Thanks for all the links!