views:

139

answers:

1

Given the following code:

using Aspose.Cells
// {...}  
Workbook workbook = new Workbook();  
Worksheet virtualWorksheet = workbook.Worksheets[0];  
virtualWorksheet.Cells[0, 0].Formula ="=1<2";

How do I evaluate the formula in Cell [0,0]?

bool isCellTrue = virtualWorksheet.Cells[0, 0].BoolValue; // will generate an exception at run-time