VSTO Ribbon not showing when starting from blank Solution

最后都变了- 提交于 2019-12-24 16:31:52

问题


If I create a new 'Excel 2013 and 2016 VSTO Add-in' Project from the File/New Project... menu, and then Project/Add New Item... -> Ribbon (Visual Designer), everything works fine: when I launch the App I have my Ribbon showing in Excel.

But if I first create a 'Blank Solution', and then add an Excel VSTO Project from the File/Add/New Project...: if I add a Ribbon item in the project it does not show in Excel.

That must mean I have to set a reference to the Ribbon somewhere in the Solution properties, but I could not find where. Any ideas?


回答1:


Open ribbon in Design view (where do you add bottons, labels, etc.), select ribbon and check in properties panel if RibbonType = Microsoft.Excel.Workbook

hope help you



来源:https://stackoverflow.com/questions/54676630/vsto-ribbon-not-showing-when-starting-from-blank-solution

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!