1) При нажатии на кнопку Печать в окне просмотра отчёта появляется диалог выбора принтера. После выбора принтера и нажатия на кнопку Печать программа вылетает и выдаёт следующий стектрейс:
Код: Выделить всё
Описание. Приложение запросило завершение процесса через System.Environment.FailFast(сообщение строки).
Сообщение: Необратимая системная ошибка.
Стек:
в System.Environment.FailFast(System.String)
в MS.Internal.Invariant.FailFast(System.String, System.String)
в MS.Internal.Invariant.Assert(Boolean)
в MS.Internal.Printing.Configuration.WinSpoolPrinterCapabilities.GetArrayCapability[[System.UInt32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MS.Internal.Printing.Configuration.DeviceCapability, ReadArray`1<UInt32>, Int32)
в MS.Internal.Printing.Configuration.WinSpoolPrinterCapabilities.GetArrayCapability[[System.UInt32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MS.Internal.Printing.Configuration.DeviceCapability, ReadArray`1<UInt32>)
в MS.Internal.Printing.Configuration.WinSpoolPrinterCapabilities.get_MediaTypes()
в MS.Internal.Printing.Configuration.FallbackPTProvider.GetPrintCapabilities(System.IO.MemoryStream)
в System.Printing.PrintTicketManager.GetPrintCapabilitiesAsXml(System.Printing.PrintTicket)
в System.Printing.PrintTicketManager.GetPrintCapabilities(System.Printing.PrintTicket)
в System.Printing.PrintQueue.GetPrintCapabilities(System.Printing.PrintTicket)
в System.Windows.Controls.PrintDialog.UpdatePrintableAreaSize()
в System.Windows.Controls.PrintDialog.get_PrintableAreaWidth()
в Stimulsoft.Report.Print.StiWpfPrintProvider.SetPrintTicketFromPage(System.Windows.Controls.PrintDialog, Stimulsoft.Report.Components.StiPage, Double ByRef, Double ByRef)
в Stimulsoft.Report.Print.StiWpfPrintProvider.Print(System.Object, Boolean, Int32, Int32, Int32, System.String)
в Stimulsoft.Report.StiReport.PrintWithWpfInternal(System.Object, Boolean, Int32, Int32, Int32, System.String)
в Stimulsoft.Report.StiReport.PrintWithWpf(System.Object, Boolean, Int32, Int32, Int32, System.String)
в Stimulsoft.Report.StiReport.PrintWithWpf()
в Stimulsoft.Report.Viewer.StiWpfViewerControl.OnReportPrint(System.Windows.RoutedEventArgs)
в Stimulsoft.Report.Viewer.StiWpfViewerControl.InvokeReportPrint()
в Stimulsoft.Report.Viewer.StiWpfViewerControl.OnViewerCommand(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
в System.Windows.Input.CommandBinding.OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
в System.Windows.Input.CommandManager.ExecuteCommandBinding(System.Object, System.Windows.Input.ExecutedRoutedEventArgs, System.Windows.Input.CommandBinding)
в System.Windows.Input.CommandManager.FindCommandBinding(System.Windows.Input.CommandBindingCollection, System.Object, System.Windows.RoutedEventArgs, System.Windows.Input.ICommand, Boolean)
в System.Windows.Input.CommandManager.FindCommandBinding(System.Object, System.Windows.RoutedEventArgs, System.Windows.Input.ICommand, Boolean)
в System.Windows.Input.CommandManager.OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
в System.Windows.UIElement.OnExecutedThunk(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
в System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
в System.Windows.Input.RoutedCommand.ExecuteImpl(System.Object, System.Windows.IInputElement, Boolean)
в System.Windows.Input.RoutedCommand.ExecuteCore(System.Object, System.Windows.IInputElement, Boolean)
в MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
в System.Windows.Controls.Primitives.ButtonBase.OnClick()
в System.Windows.Controls.Button.OnClick()
в System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
в System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
в System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
в System.Windows.Input.InputManager.ProcessStagingArea()
в System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
в System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
в MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
в MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
в System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
в MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
в System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
в System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
в System.Windows.Window.ShowHelper(System.Object)
в System.Windows.Window.Show()
в System.Windows.Window.ShowDialog()
в ResumeTable.MainWindow.PrintButton_Click_1(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
в System.Windows.Controls.Primitives.ButtonBase.OnClick()
в System.Windows.Controls.Button.OnClick()
в Microsoft.Windows.Controls.Ribbon.RibbonButton.OnClick()
в System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
в System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
в System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
в System.Windows.Input.InputManager.ProcessStagingArea()
в System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
в System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
в MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
в MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
в System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
в MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
в System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
в System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
в System.Windows.Threading.Dispatcher.Run()
в System.Windows.Application.RunDispatcher(System.Object)
в System.Windows.Application.RunInternal(System.Windows.Window)
в System.Windows.Application.Run(System.Windows.Window)
в XXX.App.Main()
Дополнительные сведения можно найти в центре справки и поддержки, в "http://go.microsoft.com/fwlink/events.asp".