PrintTicket provider failed to bind to printer. Win32 error: The s

H

Harshal

I am using a Vista machine. I created a sample WPF application and on button
click, i have following code -

PrintDialog printDialog = new PrintDialog();
printDialog.ShowDialog()

Now when I run this application and click on the button, I see a Print
dialog. In Print dialog, select "PDFCamp Printer" and click on the print
button, I get following exception - Even when I just select "PDFCamp printer"
and click on Apply and then Cancel button , I see below exception -

"PrintTicket provider failed to bind to printer. Win32 error: The specified
resource type cannot be found in the image file.

at MS.Internal.Printing.Configuration.PTProvider..ctor(String deviceName,
Int32 maxVersion, Int32 clientVersion)
at System.Printing.Interop.PrintTicketConverter..ctor(String deviceName,
Int32 clientPrintSchemaVersion)
at
MS.Internal.Printing.Win32PrintDialog.PrintDlgExMarshaler.AcquirePrintTicket(IntPtr devModeHandle, String printQueueName)
at
MS.Internal.Printing.Win32PrintDialog.PrintDlgExMarshaler.SyncFromStruct()
at MS.Internal.Printing.Win32PrintDialog.ShowDialog()
at System.Windows.Controls.PrintDialog.ShowDialog()
at Thomson.Financial.SmartOne.Shell.PrintManager.ShowPrintDialog() in
D:\LatestSmartClient\SmartONE\Src\Shell\PrintManager.cs:line 212
at Thomson.Financial.SmartOne.Shell.PrintManager.Print(PrintDelegate
printDelegate) in
D:\LatestSmartClient\SmartONE\Src\Shell\PrintManager.cs:line 58
at
Thomson.Financial.SmartOne.Shell.PrintManager.PrintThomletHostView(IThomletHostView
thomletHostView) in
D:\LatestSmartClient\SmartONE\Src\Shell\PrintManager.cs:line 177
at
Thomson.Financial.SmartOne.ThomsonOne2008.MainControl.PrintExecuted(Object
sender, ExecutedRoutedEventArgs e) in
D:\LatestSmartClient\SmartONE\Src\Thomson One 2008
Full\MainControl.xaml.cs:line 1642
at System.Windows.Input.CommandBinding.OnExecuted(Object sender,
ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object
sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at
System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection
commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean
execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender,
RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender,
ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender,
ExecutedRoutedEventArgs e)
at
System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate
genericHandler, Object target)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object
target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target,
RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source,
RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,
RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean
trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter,
IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter,
IInputElement target, Boolean userInitiated)
at
MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)"




Any idea how to resolve this?????????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top