Aspose.Cells.Examples.CSharp.Articles.CustomizingRibbonXML.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);

            Workbook wb = new Workbook(dataDir+ "aspose-sample.xlsx");
            FileInfo fi = new FileInfo(dataDir+ "CustomUI.xml");
            StreamReader sr = fi.OpenText();
            wb.RibbonXml = sr.ReadToEnd();
            sr.Close();
            // ExEnd:1
        }
    }
CustomizingRibbonXML