Does Aspose.Cells.Workbook.Copy(Workbook) does a deep copy or shallow copy ??
Thank you for considering Aspose APIs.
The Aspose.Cells.Workbook.Copy method makes a deep copy of the Workbook object by copying the structure as well as the data and formatting from the source object to the destination object. You can confirm this using the following code snippet. When you load the resultant spreadsheet in Excel application, you will notice that it has everything (worksheets, data, formulas, style etc) as of the original source spreadsheet.
var book = new Workbook(source);
var newbook = new Workbook();
Console.WriteLine(“Worksheet Count:” + newbook.Worksheets.Count);
Console.WriteLine(“Cell Count:” + newbook.Worksheets.Cells.Count);
Console.WriteLine(“Max Data Columns:” + newbook.Worksheets.Cells.MaxDataColumn);
Console.WriteLine(“Max Data Rows:” + newbook.Worksheets.Cells.MaxDataRow);
Please feel free to contact us back in case you have further questions for us.