Free Support Forum - aspose.com

Columns.Count After Workbook.Open

hello together,

is there an alternative to get the count of columns after open an Excelfile with Aspose.Cells? if i try this, the columns.count returns 0 but there are more columns in it.

what can i do to get the right information about columns.count?

thank you very much.

Columns.Count returns number of columns which don’t have default settings. For your purpose, please try Cells.MaxColumn or Cells.MaxDataColumn property.

hi laurence,

thank you very much, that was i searched for.