public static void Main() { // ExStart:1 LoadOptions LoadOptions = new LoadOptions(); var objWB = new Aspose.Cells.Workbook(sourceDir + "Circular Formulas.xls", LoadOptions); objWB.Settings.Iteration = true; CalculationOptions copts = new CalculationOptions(); CircularMonitor cm = new CircularMonitor(); copts.CalculationMonitor = cm; objWB.CalculateFormula(copts); long lngCircularRef = cm.circulars.Count; Console.WriteLine("Circular References found - " + lngCircularRef); // ExEnd:1 Console.WriteLine("DetectCircularReference executed successfully.\r\n"); }