SpreadsheetGear Namespace > IWorkbookSet Interface : CalculationOnDemand Property |
'Declaration
Property CalculationOnDemand As System.Boolean
'Usage
Dim instance As IWorkbookSet Dim value As System.Boolean instance.CalculationOnDemand = value value = instance.CalculationOnDemand
System.bool CalculationOnDemand {get; set;}
read-write property CalculationOnDemand: System.Boolean;
function get,set CalculationOnDemand : System.boolean
Calculation on demand is a feature of SpreadsheetGear which can dramatically increase performance of some applications. There are four primary strategies for calculating cells in SpreadsheetGear:
Suppose you have a workbook where you have 100 rows and three columns. Columns A and B have a number, column C adds A + B. If you will be working within one row at a time, changing numbers in columns A and B, and retrieving the result of the formula in column C, calculation on demand will perform very well.
If, on the other hand, you will be making changes in columns A and B, and retrieving many of the cells in column C, turning off calculation on demand may perform better.
If you know that you will need all cells in a workbook set to be calculated, the most efficient strategy is to call Calculate before you start to retrieve the results of formula cells.
Setting CalculationOnDemand to true will disable multi-threaded recalc for most cells in a workbook set.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2