Hi,
Somebody can tell me how can i catch this exception with toolstripsearch when i search an occurence in my pdf.
Thank you
exception System.IndexOutOfRangeException
HResult=-2146233080
Message=The page index is out of range.
Source=Patagames.Pdf.WinForms
StackTrace:
at Patagames.Pdf.Net.Controls.WinForms.PdfViewer.PageToClient(Int32 pageIndex, PointF pt)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.PdfToolStripSearch.ScrollToRecord(Int32 currentRecord)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.PdfToolStripSearch.OnCurrentRecordChanged(ToolStripControlHost item, Int32 currentRecord)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.PdfToolStripSearch.SearchBar_CurrentRecordChanged(Object sender, EventArgs e)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.SearchBar.set_CurrentRecord(Int32 value)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.SearchBar.ProcessDownClick()
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.SearchBar.Button_MouseUp(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Planche.App.Main() in C:\Users\9305924K\Desktop\Planche\Master\Planche\Planche\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Edited by moderator Sunday, February 7, 2016 7:57:59 AM(UTC)
| Reason: Not specified