Aspose.Cells.Examples.CSharp.Articles.OptimizingMemoryUsage.ReadingLargeExcelFiles.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            // Specify the LoadOptions
            LoadOptions opt = new LoadOptions();
            // Set the memory preferences
            opt.MemorySetting = MemorySetting.MemoryPreference;

            // Instantiate the Workbook
            // Load the Big Excel file having large Data set in it
            Workbook wb = new Workbook(dataDir+ "Book1.xlsx", opt);
            // ExEnd:1
            
        }
    }
ReadingLargeExcelFiles