We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.NullReferenceException error in CopyColumn function

Hi

I am using CopyColumn function to copy column from one workbook to another workbook. First time it works fine. It copy column. but when I am trying to copy second column.it throws error.

Please find attached sample console application.ColumnPastingConsole.zip (23.5 KB)
Please add the aspose.cells dll in it. Project size was exceeding its max length when I add it that’s why I excluded it from console application for you. I am using 8.8.3.9 version of aspose.cells

In this application, I have 2 workbooks, I am copying first column of first worksheet of each workbook in third workbook. It copies the column from fist workbook successfully but throws error for second workbook.

NOTE: We are using factset formulas.

Regards,
Sumit

@sumitagarwal

Thanks for using Aspose APIs.

Please download and try the most recent version. It is working fine. We tested your sample code/project with the recent version and it did not throw any exception. Let us know your feedback.