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

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            // Specify your desired matrix
            int rowsCount = 10000;
            int colsCount = 30;

            var workbook = new Workbook();
            var ooxmlSaveOptions = new OoxmlSaveOptions();

            ooxmlSaveOptions.LightCellsDataProvider = new TestDataProvider(workbook, rowsCount, colsCount);

            workbook.Save(dataDir + "output.out.xlsx", ooxmlSaveOptions);
        }
    }
WriteUsingLightCellsAPI