File Saving error: NullRefrenceException

Hi,

I am using the aspose cells for .net the version is:

Runtime version: v2.0.50727

Version: 7.0.2.0

When I am running the below code:

Workbook workbook = new Workbook();

Worksheet worksheet = workbook.Worksheets[0];

Cell cellA1 = worksheet.Cells["A1"];

cellA1.PutValue("MyTestValue");

workbook.Settings.Password = "Punit";

workbook.Save(@"C:\ExcelTest\ProtectSheet.xlsx",SaveFormat.Xlsx); // Error at this line

Error:

am getting the error: NullRefrenceException

Object reference not set to an instance of an object.

Can you also confirm if this is the latest version or provide me the link for latest version as we are very close to finalize the product.

Thanks,

Punit

Hi,

Please try our latest version, please download: Aspose.Cells for .NET v7.0.3.0

I have tested with it using your code and it works fine.

Thank you.

Hi Amjad,

I downloaded the latest version provided by you. But still facing the same issue. See the snapshot.

Thanks,

Punit

Hi,

It works absolutely fine. See the attached output file here.

Could you create a separate sample console application with v7.0.3, zip it and post it here to show the issue, we will check it soon.

Thank you.