当我尝试打开报表时出现错误 MenuBar 参数必须是布尔值

Error The MenuBar parameter must be a boolean when I am trying to open report

我开始使用 DevExpress 7.1.4(旧版本 2007)处理一个项目,当我尝试打开报告时出现以下错误: MenuBar 参数必须是布尔值

如果有人遇到同样的问题,如何解决?请写下来。谢谢。

更新:我发现 7.1.4 与 vs17 不兼容,但我不知道在哪里可以打开 7.1.4 的报告

调用堆栈: 在 Microsoft.VisualStudio.PlatformUI.UtilityMethods.CastTo[T](对象 o,T defaultT,字符串异常消息) 在 Microsoft.VisualStudio.PlatformUI.Automation.CommandBars.AddArguments..ctor(对象名称,对象位置,对象菜单栏,对象临时,对象保护) 在 Microsoft.VisualStudio.PlatformUI.Automation.CommandBars.AddEx(对象名称、对象位置、对象菜单栏、对象临时、对象保护) 在 Microsoft.VisualStudio.PlatformUI.Automation.CommandBars._Marshaler.<>c__DisplayClass11_0.b__0() 在 Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 方法) 在 Microsoft.VisualStudio.PlatformUI.Automation.CommandBars._Marshaler.Add(对象名称、对象位置、对象菜单栏、对象临时) 在 DevExpress.XtraReports.Design.Commands.XRFormattingCommandBar.CreateCommandBar() 在 DevExpress.XtraReports.Design.Commands.XRCommandBar.Initialize() 在 DevExpress.XtraReports.Design.Commands.XRCommandBar..ctor(IServiceProvider 服务提供者,字符串名称) 在 DevExpress.XtraReports.Design.Commands.CommandBarFontService..ctor(IServiceProvider 服务提供商) 在 DevExpress.XtraReports.Design.Commands.ZoomCommandBarFontService..ctor(IServiceProvider 服务提供商) 在 DevExpress.XtraReports.Design.ReportFormattingBar..ctor(IServiceProvider 服务提供商) 在 DevExpress.XtraReports.Design._ReportDesigner.GetReportTool(IServiceProvider srvProvider) 在 DevExpress.XtraReports.Design.ReportDesigner.Initialize(IComponent 组件) 在 DevExpress.XtraReports.Design._ReportDesigner.Initialize(IComponent 组件) 在 System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent 组件,字符串名称,IContainer containerToAddTo) 在 System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent 组件,字符串名称) 在 System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(类型组件类型,字符串名称) 在 System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(类型类型、ICollection 参数、字符串名称、布尔 addToContainer) 在 System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(类型类型、ICollection 参数、字符串名称、布尔 addToContainer) 在 System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager 管理器,CodeTypeDeclaration 声明) 在 DevExpress.XtraReports.Design.ReportCodeDomSerializer.Deserialize(IDesignerSerializationManager 管理器,对象代码对象) 在 System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager 经理) 在 Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) 在 Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

如果您查看 Prerequisites documentation,您将看到 DevExpress v7.1.4 仅与 Visual Studio 2005 和 2008 版本兼容。您将需要更换到更新版本的 DevExpress XtraReports 套件或使用旧版本的 Visual Studio 以使用您的版本。