Replacement for BuiltInDocumentProperties- When upgrading .Net project's Aspose Cells from 4.7.1.0 to 8.4.0

I just tried to set a new reference to new DLL Aspose cells 8.4.0. And i see so much error, since the properties or objects that is not supported in new version of aspose cells.

- Aspose.Cells.Rows
-Aspose.Cells.Columns
-Aspose.Cells.Comments
-Aspose.Cells.BuiltInDocumentProperties
-Aspose.Cells.Validations
-Aspose.Cells.Styles
-Aspose.Cells.Worksheets


And i found some replacement of the above;
-Aspose.Cells.Row
-Aspose.Cells.Column
-Aspose.Cells.Comment
-________
-Aspose.Cells.Validation
-Aspose.Cells.Style
-Aspose.Cells.Worksheet

I have changes these much properties now, But did not find any for BuiltInDocumentProperties.
What can be the replacement for this.? Can someone please help on this .?





Hi,


Thank you for contacting Aspose support.

The BuiltInDocumentPropertyCollection class is now available under the Aspose.Cells.Properties namespace. You can access the collection using the Workbook.BuiltInDocumentProperties property.

Please feel free to get in touch if you have more questions for us.

Still facing some issues with Aspose.Cells.Styles, What is the replacement for this, i dint find any collection for this.?

Hi,


Well, this class is now obsoleted. Instead, please use Workbook.CreateStyle() to
create and manipulate style for workbook instead of StyleCollection.Add() and
use Workbook.GetNamedStyle(string) to get named style instead of
StyleCollection[string].

FYI, while trying to keep the API as straightforward and clear as possible, we decided to recognize and honor the common development practices of the platform. Therefore, Aspose.Cells for .NET follows coding guidelines widely accepted by .NET developers now. With the release of Aspose.Cells for .NET version v5.0.0, we have 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.

Let me come towards your most significant errors that you might encounter while upgrading to newer versions of the product from v4.7,x so you can fix them accordingly:

1) You need to import the relevant namesapaces or use fully qualified naming when declaring objects for classes etc.:
e.g
using System;
using System.Web;
using Aspose.Cells;
using Aspose.Cells.Pivot;
etc.
we have moved certain APIs to the respective namespaces:
i.e.,
Aspose.Cells Contains all classes of Aspose.Cells
Aspose.Cells.Charts Contains all classes of chart and sparkline
Aspose.Cells.Drawing Contains all classes of shapes and fill format
Aspose.Cells.ExternalConnections Contains all classes of external connections
Aspose.Cells.Markup Contains all classes of smart tag
Aspose.Cells.Pivot Contains all classes of PivotTable
Aspose.Cells.Properties Contains all classes of document and worksheet properties
Aspose.Cells.Rendering Contains all classes of Rendering image and pdf
Aspose.Cells.Rendering.PdfSecurity Contains all security options of Rendering pdf
Aspose.Cells.Tables Contains all classes of Table(List Object)
etc.

2) Some classes are renamed especially collection classes. e.g
i) Validations → ValidationCollection
ii) PivotTables → PivotTableCollection
iii) Worksheets —> WorksheetCollection
etc.

3) Aspose.Cells.Style property is eliminated/obsoleted now, you should adjust your code to use Aspose.Cells.GetStyle() and Aspose.Cells.SetStyle() methods/ approach, it will also enhance the performance to certain extent:
e.g
Your sample code using Style attribute should be updated accordingly, e.g
Style style = wsNdaa.Cells[0, 0].GetStyle();
style.Font.IsBold = true;
wsNdaa.Cells[0, 0].SetStyle(style);
Styyle style2 = cells[“I1”].GetStyle();
style2.HorizontalAlignment = TextAlignmentType.Center;
style2.BackgroundColor = System.Drawing.Color.Navy;
style2.Font.IsBold = true;
cells[“I1”].SetStyle(style2);
We recommend you to kindly see the Aspose.Cells for .NET Wiki Conf. Docs for your reference, especially the topics in the sections/ sub sections:

Please see the API Reference pages especially for your complete reference:

Hope, this helps you a bit.

Thank you.

Hi


I been trying to set data validation for a cell. And i been trying to set formula using Substitute function. Seems like it is not supports with aspose cells. It shows up some error and validation is not working after export. Same time the function is working fine with excel 2003.

=IF(SUBSTITUTE(INDIRECT(ADDRESS(ROW(),COLUMN()-1))," “, “”)=”", INDIRECT(“BLANK”),INDIRECT( SUBSTITUTE(INDIRECT(ADDRESS(ROW(),COLUMN()-1)),"->", “”)))
Hi,

devl hevnA:

I been trying to set data validation for a cell. And i been trying to set formula using Substitute function. Seems like it is not supports with aspose cells. It shows up some error and validation is not working after export. Same time the function is working fine with excel 2003.

=IF(SUBSTITUTE(INDIRECT(ADDRESS(ROW(),COLUMN()-1))," ", "")="", INDIRECT("BLANK"),INDIRECT( SUBSTITUTE(INDIRECT(ADDRESS(ROW(),COLUMN()-1)),"->", "")))

Hi,

Please see and follow up your other thread here:
<a href="https://forum.aspose.com/t/43706</a></div></div><div><br></div><div>Thank you.</div>

Replacement for ->SaveType.OpenInExcel


This property or ENUM is going to be obsolete in the 8.4.0…?

Hi,


Please use ContentDisposition.Attachment instead in the newer versions of Aspose.Cells for .NET, see the document for your complete reference with examples regarding the Workbook.Save() overloaded method involving Response object for your requirements:
http://www.aspose.com/docs/display/cellsnet/Saving+Files
(Note: please see the description and example codes under sub-heading “Saving File to Response Object”).

Thank you.