PrintTicket provider failed to convert PrintTicket to DEVMODE
Posted: Tue Jan 05, 2010 5:12 am
Hi
I got this exception when I try to print a report "PrintTicket provider failed to convert PrintTicket to DEVMODE"
Does anyone know what this is?
System.Printing.PrintQueueException: PrintTicket provider failed to convert PrintTicket to DEVMODE. Win32-feil: -2147418113
ved MS.Internal.Printing.Configuration.PTProvider.ConvertPrintTicketToDevMode(MemoryStream printTicket, BaseDevModeType baseType, PrintTicketScope scope)
ved System.Printing.Interop.PrintTicketConverter.InternalConvertPrintTicketToDevMode(PTProvider provider, PrintTicket printTicket, BaseDevModeType baseType, PrintTicketScope scope)
ved System.Printing.Interop.PrintTicketConverter.ConvertPrintTicketToDevMode(PrintTicket printTicket, BaseDevModeType baseType, PrintTicketScope scope)
ved System.Printing.Interop.PrintTicketConverter.ConvertPrintTicketToDevMode(PrintTicket printTicket, BaseDevModeType baseType)
ved Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.GetDevmode(PrintTicket ticket)
ved Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.StartDocument(String jobName, PrintTicket ticket)
ved System.Windows.Xps.Serialization.NgcSerializationManager.StartDocument(Object o, Boolean documentPrintTicketRequired)
ved System.Windows.Xps.Serialization.NgcDocumentPaginatorSerializer.SerializeObject(Object serializedObject)
ved System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)
ved System.Windows.Xps.XpsDocumentWriter.SaveAsXaml(Object serializedObject, Boolean isSync)
ved System.Windows.Xps.XpsDocumentWriter.Write(DocumentPaginator documentPaginator)
ved System.Windows.Controls.PrintDialog.PrintDocument(DocumentPaginator documentPaginator, String description)
ved Stimulsoft.Report.Print.StiWpfPrintProvider.Print(Object printTicketObject, Boolean showPrintDialog, Int32 fromPage, Int32 toPage, Int32 copies, String printerName)
ved Stimulsoft.Report.StiReport.PrintWithWpfInternal(Object printTicket, Boolean showPrintDialog, Int32 fromPage, Int32 toPage, Int32 copies, String printerName)
ved Stimulsoft.Report.StiReport.PrintWithWpf(Object printTicket, Boolean showPrintDialog, Int32 fromPage, Int32 toPage, Int32 copies, String printerName)
ved Stimulsoft.Report.StiReport.PrintWithWpf()
ved Stimulsoft.Report.Viewer.StiWpfViewerControl.OnReportPrint(RoutedEventArgs e)
ved Stimulsoft.Report.Viewer.StiWpfViewerControl.InvokeReportPrint()
ved Stimulsoft.Report.Viewer.StiWpfViewerControl.OnViewerCommand(Object target, ExecutedRoutedEventArgs args)
ved System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
ved System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
ved System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
ved System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
ved System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
ved System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
ved System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
ved System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
ved MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
ved System.Windows.Controls.Primitives.ButtonBase.OnClick()
ved System.Windows.Controls.Button.OnClick()
ved System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
ved System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
ved System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
ved System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.InputManager.ProcessStagingArea()
ved System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
ved System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
ved System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
ved System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
I got this exception when I try to print a report "PrintTicket provider failed to convert PrintTicket to DEVMODE"
Does anyone know what this is?
System.Printing.PrintQueueException: PrintTicket provider failed to convert PrintTicket to DEVMODE. Win32-feil: -2147418113
ved MS.Internal.Printing.Configuration.PTProvider.ConvertPrintTicketToDevMode(MemoryStream printTicket, BaseDevModeType baseType, PrintTicketScope scope)
ved System.Printing.Interop.PrintTicketConverter.InternalConvertPrintTicketToDevMode(PTProvider provider, PrintTicket printTicket, BaseDevModeType baseType, PrintTicketScope scope)
ved System.Printing.Interop.PrintTicketConverter.ConvertPrintTicketToDevMode(PrintTicket printTicket, BaseDevModeType baseType, PrintTicketScope scope)
ved System.Printing.Interop.PrintTicketConverter.ConvertPrintTicketToDevMode(PrintTicket printTicket, BaseDevModeType baseType)
ved Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.GetDevmode(PrintTicket ticket)
ved Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.StartDocument(String jobName, PrintTicket ticket)
ved System.Windows.Xps.Serialization.NgcSerializationManager.StartDocument(Object o, Boolean documentPrintTicketRequired)
ved System.Windows.Xps.Serialization.NgcDocumentPaginatorSerializer.SerializeObject(Object serializedObject)
ved System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)
ved System.Windows.Xps.XpsDocumentWriter.SaveAsXaml(Object serializedObject, Boolean isSync)
ved System.Windows.Xps.XpsDocumentWriter.Write(DocumentPaginator documentPaginator)
ved System.Windows.Controls.PrintDialog.PrintDocument(DocumentPaginator documentPaginator, String description)
ved Stimulsoft.Report.Print.StiWpfPrintProvider.Print(Object printTicketObject, Boolean showPrintDialog, Int32 fromPage, Int32 toPage, Int32 copies, String printerName)
ved Stimulsoft.Report.StiReport.PrintWithWpfInternal(Object printTicket, Boolean showPrintDialog, Int32 fromPage, Int32 toPage, Int32 copies, String printerName)
ved Stimulsoft.Report.StiReport.PrintWithWpf(Object printTicket, Boolean showPrintDialog, Int32 fromPage, Int32 toPage, Int32 copies, String printerName)
ved Stimulsoft.Report.StiReport.PrintWithWpf()
ved Stimulsoft.Report.Viewer.StiWpfViewerControl.OnReportPrint(RoutedEventArgs e)
ved Stimulsoft.Report.Viewer.StiWpfViewerControl.InvokeReportPrint()
ved Stimulsoft.Report.Viewer.StiWpfViewerControl.OnViewerCommand(Object target, ExecutedRoutedEventArgs args)
ved System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
ved System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
ved System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
ved System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
ved System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
ved System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
ved System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
ved System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
ved MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
ved System.Windows.Controls.Primitives.ButtonBase.OnClick()
ved System.Windows.Controls.Button.OnClick()
ved System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
ved System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
ved System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
ved System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.InputManager.ProcessStagingArea()
ved System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
ved System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
ved System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
ved System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)