Error while printing in WPF
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
- Right Click the Printer and take Printer preferences
- Change the Source property to 'Manual Feed'& Apply.(Initially it was'AutoSelect')
- Still got some error.
- Again me changed the Source property back to 'Auto Select'& Apply.
- Changed the Quick set Property to 'Defaults'& Apply
Now its Working Fine
精彩评论