老师,打扰一下,我在beforeopenproject项目事件里面写了一段很简单的代码,
Dim Table1 As RibbonMenu.Tab
Table1 = RibbonTabs("Table")
Dim Table2 As RibbonMenu.Tab
Table2 = RibbonTabs("Project")
Dim Table3 As RibbonMenu.Tab
Table3 = RibbonTabs("Other")
If user.Type <> UserTypeEnum.Developer Or user.Type <> UserTypeEnum.Administrator Then
Table1.Visible = False
Table2.Visible = False
Table3.Visible = False
End If
If user.Type = UserTypeEnum.Developer Or user.Type = UserTypeEnum.Administrator Then
Table1.Visible = True
Table2.Visible = True
Table3.Visible = True
End If
但是项目发布后老是提示不存在名为"table"的功能区,不存在名为project和other的功能区,但是我的菜单里面确实是有这几个功能区的啊,这是啥情况啊

此主题相关图片如下:菜单截图.png
