user2183216
user2183216

Reputation: 359

Finding out if a column is hidden in an excel file using EPPLUS

I have a project which reads in a excel file using EPPlus. However, often the files can include hidden columns.

Is there a way of determining if a column is hidden using EPPlus?

I basically want to ignore any hidden columns.

Upvotes: 1

Views: 2358

Answers (1)

Scott Hannen
Scott Hannen

Reputation: 29222

Given an OfficeOpenXml.ExcelWorksheet ws (from the EPPlus assembly)

var hidden = ws.Columns(1).Hidden;

Upvotes: 1

Related Questions