Please download and try the latest offline demos. These demos can work with Visual Studio 2005, 2008 or 2010. Please read the readme.txt file before running the demos.
"Dim cell As Cells = New Cells.... Error 35 'Aspose.Cells.Cells.Friend Sub New(Param As ., Param As Aspose.Cells.Worksheet)' is not accessible in this context because it is 'Friend'."
This is not the right way that you could get Cells or Cell in a worksheet of the Workbook/Excel file. Therefore, you are getting this error. You must correct your codes accordingly. See the following sample code for your reference.
Sample code:
'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
'Adding a new blank worksheet to the Excel object
Dim i As Integer = workbook.Worksheets.Add()
'Obtaining the reference of the newly added worksheet by passing its sheet index
Dim worksheet As Worksheet = workbook.Worksheets(i)
'Accessing cells
Dim cells As Cells = worksheet.Cells
‘Accessing cells using its name
Dim cell As Cell = cells(“A1”)
’…Your code goes here.
We recommend you to kindly check the Documentation especially the topics in the section e.g
"Dim cell As Cells = New Cells.... Error 35 'Aspose.Cells.Cells.Friend Sub New(Param As ., Param As Aspose.Cells.Worksheet)' is not accessible in this context because it is 'Friend'."
This is not the right way that you could get Cells or Cell in a worksheet of the Workbook/Excel file. Therefore, you are getting this error. You must correct your codes accordingly. See the following sample code for your reference.
Sample code:
'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
'Adding a new blank worksheet to the Excel object
Dim i As Integer = workbook.Worksheets.Add()
'Obtaining the reference of the newly added worksheet by passing its sheet index
Dim worksheet As Worksheet = workbook.Worksheets(i)
'Accessing cells
Dim cells As Cells = worksheet.Cells
'Accessing cells using its name
Dim cell As Cell = cells("A1")
'...Your code goes here.
We recommend you to kindly check the Documentation especially the topics in the section e.g
Thanks for your reply. I have an issue that I posted a few months ago: <A href="</A></P>
<P>and now decided to see how much time and effort to refactor from an old version of aspose.excel to aspose.cells now since the old version of apose.excel requires FIPS enable.<FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas></P></FONT></FONT></FONT>
For your information, with the release of Aspose.Cells for .NET version v5.0.0, we re-organized the API classes for Aspose.Cells component. This change has some major aspects that we follow. We have added new namespaces. All the API (classes, interfaces, enumerations, structures etc.) were previously located in the Aspose.Cells namespace. Now, certain sets of API have been moved to their relative namespaces, which make the relationship of classes (with their members) and namespaces clear and simplified.
Namespaces
All classes in Aspose.Cells are split into appropriate namespaces for easy access. The Aspose.Cells namespace is of course the root namespace that provides classes for generating, converting, modifying, rendering and printing Microsoft Excel documents without utilizing Microsoft Excel.