在WPF中打印时出错. [英] Error while printing in WPF..

查看:568
本文介绍了在WPF中打印时出错.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谢谢您的时间!!

在WPF中打印时出现以下错误.

PrintTicket提供程序无法检索PrintCapabilities. Win32错误:-2147418113

这是我要打印的代码

printDlg.PrintDocument(idpSource.DocumentPaginator,"Hello WPF打印.");

解决方案

在这里可能有用...

PrintTicket提供程序无法检索PrintCapabilities [ ^ ]
打印UserControl [
解决方案

Maybe something useful here...

PrintTicket provider failed to retrieve PrintCapabilities[^]
Print the UserControl[^]


I don''t know what is exactly the problem,But something related to Printer.

From Control Panel->Printers & Fax

1.Right Click the Printer and take Printer preferences
2.Change the Source property to ''Manual Feed''& Apply.(Initially it was''AutoSelect'')
3.Still got some error.
4.Again me changed the Source property back to ''Auto Select''& Apply.
5.Changed the Quick set Property to ''Defaults''& Apply
5.Now its Working Fine


这篇关于在WPF中打印时出错.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆