Defining cells as cells type expected

Dim workbook As Workbook = New Workbook()

'Set default font

Dim style As Style = workbook.DefaultStyle

style.Font.Name = "Tahoma"

workbook.DefaultStyle = style

'CreateStaticData(workbook)

Dim worksheet As Worksheet = workbook.Worksheets(0)

Dim cells As Cells = workbook.Worksheets(0).Cells

Cells is listed in the error list as "type expected". If I remove the above live and run script with the line of code listed below it creates a xls document. I just can't define cell.

thanks,

Ron

Curious---this work (see below)

Dim cells As Cells.Cells = workbook.Worksheets(0).Cells

Hi,

Thank you for considering Aspose.

Well, its a very strange issue.I tested you code and "Dim cells As Cells = workbook.Worksheets(0).Cells" works fine if we import Aspose.Cells Namespace in our program. Please provide us some more information about your system environment (OS,VS.NET, 32 bit or 64 bit machine etc) to figure out the problem. Also, let us know about the version of Aspose.Cells you are using.

Thank You & Best Regards,

ASPOSE.Cells 4.7.1.0

ASPOSE.Slides 3.1.1.0

Windows XP Prefessional SP2

MS office 2003 SP3

Sorry...

Windows XP Prefessional (32 bit)

Hi,

Thank you for considering Aspose.

Well, i think you have defined another Cells class or there is same Cells class in some other dll which is causing this problem. Other than that we don't find any reason for your reported issue.

Thank You & Best Regards,