Skip to content

Replies

0
Rahul
Rahul answered on May 25, 2010 7:29 AM

Hi Mike,

Thanks for the quick response. So, do I need to check for the existence for the following:

this.popupPrintFax.Tools["btnPrintReq"].SharedProps.Enabled = false;
this.popupPrintFax.Tools["btnFaxReq"].SharedProps.Enabled = false;
this.popupPrintFax.Tools["btnPrintRes"].SharedProps.Enabled = false;
this.popupPrintFax.Tools["btnFaxRes"].SharedProps.Enabled = false; 

Could you give me a sample Psuedocode for this.

0
Rahul
Rahul answered on May 24, 2010 12:23 PM

Hi Mike,

I saw the above thread. I am also getting the same error.  Please, find the error trace below. Need your help in this.

Error:
Exception Caught: Key not found
Parameter name: key

at Infragistics.Shared.KeyedSubObjectsCollectionBase.GetItem(String key)
at Infragistics.Win.UltraWinToolbars.ToolsCollectionBase.get_Item(String key)
at Allscripts.TouchWorks.Common.PanelOrderViewer.UpdateButtonsState()
at Allscripts.TouchWorks.Common.PanelOrderViewer.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at Allscripts.TouchWorks.Common.Viewer.SetDisplayItem(BusinessObject oItem)
at Allscripts.TouchWorks.Common.TWWorkspace.ShowViewer(Boolean bNewWindow)
at Allscripts.TouchWorks.Workspace.ChartViewer.ChartViewerControl.m_ToolbarsManager_ToolClick(Object sender, ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()
at Infragistics.Win.UltraWinToolbars.ToolMenuItem.OnClick()
at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.DoClickProcessing(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.UIElement.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.TextUIElementBase.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.PopupControlBase.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Assembly Name: Infragistics.Shared.KeyedSubObjectsCollectionBase
Assembly File: Infragistics2.Shared.v9.2.dll
Assembly Version: 9.2.20092.2042
Assembly Path: C:\WINDOWS\assembly\GAC_MSIL\Infragistics2.Shared.v9.2\9.2.20092.2042__7dd5c3163f2cd0cb\Infragistics2.Shared.v9.2.dll
.NET Version: v2.0.50727