in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Error in Print Ribbon Form

Last post 11/14/2008 9:48 AM by George (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 11/14/2008 8:00 AM

    Error in Print Ribbon Form

    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:

    1.Error 
    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

     

     

  • 11/14/2008 9:48 AM In reply to

    Re: Error in Print Ribbon Form

    Hi Maik,

    Unfortunately, I don't quite understand how to reproduce this issue.

    Please send your project to our Support Team at http://www.devexpress.com/sc, and they'll certainly help you.

    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED