阅读背景:

关于WPF 打印问题:System.ArgumentException:在路劲中检查到非法字符

来源:互联网 

如图:

解决办法:

This exception occurs because of corrupt fonts values in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts). When using WPF printing (System.Printing), it builds a list of fonts by combining the font names from registry and Windows Font Directory path. If there are any illegal characters in the path, we know there are, then the WPF application throws the exception that we see in the stack traces above.This exception occurs because of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: