Worksheets thesheets = InitializeWorksheets(); threw error after upgrading to 7.0.3

Hello,

I just upgraded Aspose.Cells from 4.5 to 7.0.3 and now this line that used to work in the old version does not work in the new version. It's throwing this error message:

The type or namespace name 'Worksheets' could not be found (are you missing a using directive or an assembly reference?)The type or namespace name 'Worksheets' could not be found (are you missing a using directive or an assembly reference?)

This is the only line of code that is throwing error right after my upgrade:

Worksheets thesheets = InitializeWorksheets(); <--

object Worksheets cannot be found in the new DLL

private Worksheets InitializeWorksheets()

{

Worksheets theSheets =

this._workBook.Worksheets;

theSheets.Clear();

return theSheets;

}

Can you pleae let me know how I can fix this?

Thanks!

Hi,

Worksheet’s name has been changed now please use WorksheetCollection

i.e

private WorksheetCollection InitializeWorksheets()

{

WorksheetCollection theSheets =

this._workBook.Worksheets;

theSheets.Clear();

return theSheets;

}