Hi all,
I'm using the print ribbon control and yesterday I write some code for the printingsystem and everything was ok and works.
Today I start the application in Visual Studio and I get the following error message:
InvalidOperationException - Code stops in Row: "InitializeComponent()"
Debug Window:
Index out of Range (Row 277) - Like "Me.RibbonControl.Size = New System.Drawing.Size(919, 121)"
Index out of Range (Row 1175) - Like "CType(Me.LayoutControl1, System.ComponentModel.ISupportInitialize).EndInit()"
The Errors are in the Designer from the PrintRibbon Form.
I cant open the Form in development mode without getting these error informations:
|
|
System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component,
Object value) System.Windows.Forms.Design.ControlDesigner.CanResetSizePropertyDescriptor.SetValue(Object
component, Object value) System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement, CodePropertyReferenceExpression
propertyReferenceEx, Boolean reportError) System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement) System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager
manager, CodeStatement statement) |
|
|
|
System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32
index) DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfoCollection.get_Item(Int32
index) DevExpress.XtraBars.Ribbon.ViewInfo.RibbonQuickAccessToolbarViewInfo.IsToolbarCustomizationItem(Int32
itemIndex) DevExpress.XtraBars.Ribbon.ViewInfo.RibbonQuickAccessToolbarViewInfo.UpdateItemsContentBounds(Rectangle
rect) DevExpress.XtraBars.Ribbon.ViewInfo.RibbonQuickAccessToolbarViewInfo.CalcViewInfo(Rectangle
bounds) DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.CalcToolbarAtTopLocation() DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.CalcCaption() DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.CalcViewInfo(Rectangle
bounds) DevExpress.XtraBars.Ribbon.RibbonControl.CheckViewInfo() DevExpress.XtraBars.Ribbon.RibbonControl.GetMinHeight() DevExpress.XtraBars.Ribbon.RibbonControl.SetBoundsCore(Int32 x, Int32 y, Int32
width, Int32 height, BoundsSpecified specified) System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width, Int32
height, BoundsSpecified specified) System.Windows.Forms.Control.set_Bounds(Rectangle value) DevExpress.XtraLayout.LayoutControlItem.UpdateControl() DevExpress.XtraLayout.Utils.UpdateControlsHelper.Update(LayoutControlItem
item) DevExpress.XtraLayout.Utils.UpdateControlsHelper.Visit(BaseLayoutItem
item) DevExpress.XtraLayout.BaseLayoutItem.Accept(BaseVisitor
visitor) DevExpress.XtraLayout.LayoutGroup.Accept(BaseVisitor
visitor) DevExpress.XtraLayout.LayoutControl.UpdateControls() DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Update() DevExpress.XtraLayout.LayoutControl.EndInitcore() DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.set_UpdatedCount(Int32
value) DevExpress.XtraLayout.LayoutControl.EndInit() |
But I didn't change anything in the designer.
Why I get these errors?
Thanks for help