Настройка Ribbon XML

Contents
[ ]
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// 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();