Aspose.Cells.Examples.CSharp.Files.Handling.OpeningFilesThroughPath.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);
            
            // Opening through Path
            // Creating a Workbook object and opening an Excel file using its file path
            Workbook workbook1 = new Workbook(dataDir + "Book1.xlsx");
            Console.WriteLine("Workbook opened using path successfully!");
            // ExEnd:1
            
        }
    }
OpeningFilesThroughPath