现在的位置: 首页 > 综合 > 正文

WPF:打印出现:Value cannot be null. Parameter name: printQueue异常

2013年03月19日 ⁄ 综合 ⁄ 共 178字 ⁄ 字号 评论关闭

当我用PrintDialog下打印时,出现异常(ArgumentException):Value cannot be null. Parameter name: printQueue。

image

 

最终发现原来是我的Windows 7系统的Print Spooler系统服务没有开启。在控制面板的服务中手动开启Print Spooler服务就没有问题了:

image

 

开启后XPS打印机也出现了:

image

 

抱歉!评论已关闭.