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

Free Support Forum - aspose.com

How to get formula in a cell


I assigned a formula in a cell in my template.I need to get the formula in the cell.How to get that


You can use Cell.Formula property.

Please use the following code, it will copy cell a1 formula to string variable


Cell al=…;

string formulaA1= a1.Formula;