![]() ![]() Copy the following content into a text file that is named AddCustomUI.xml for use as part of this example. ![]() For more information about customizing the ribbon by using the Visual Studio Ribbon Designer, see Ribbon Designer and Walkthrough: Creating a Custom Tab by Using the Ribbon Designer.įor the purposes of this demonstration, you will need an XML file that contains a customization, and the following code provides a simple customization (or you can create your own by using the Visual Studio Ribbon Designer, and then right-click to export the customization to an XML file). In addition, you will find it far easier to use the Ribbon Designer in Visual Studio 2010 to create the customization for you. Describing the XML required to create a ribbon customization is beyond the scope of this topic. Imports īefore using the Open XML SDK 2.5 to create a ribbon customization in an Excel workbook, you must first create the customization content. You must also use the following using directives or Imports statements to compile the code in this topic. DocumentFormat.OpenXml (installed by the Open XML SDK).Explicitly reference the following assemblies in your project: To use the sample code in this topic, you must install the Open XML SDK 2.0. It contains an example AddCustomUI method to illustrate This topic shows how to use the classes in the Open XML SDK 2.5 for Office to programmatically add custom UI, modifying the ribbon, to an Microsoft Excel 2010 or Microsoft Excel 2013 worksheet. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |