开发者

Error while printing in WPF

开发者 https://www.devze.com 2023-03-22 12:28 出处:网络
I\'m Getting the following error while printing in WPF. PrintTicket provider failed to retrieve PrintCapabilities. Win32

I'm Getting the following error while printing in WPF.

PrintTicket provider failed to retrieve PrintCapabilities. Win32 error.

Here is my Code to Print

printDlg.PrintDocument(idpSource.D开发者_Python百科ocumentPaginator, "Hello WPF Printing.");  


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

Now its Working Fine

0

精彩评论

暂无评论...
验证码 换一张
取 消