how to get the sheets no in excel package workbook in c#

The solution for “how to get the sheets no in excel package workbook in c#” can be found here. The following code will assist you in solving the problem.

foreach (var sheet in package.Workbook.Worksheets)
{
Console.WriteLine(sheet.Name);
}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in