该.net软件代码功能为调用打印机进行打印,里面所报详尽异常如下:有关调用实时(J
IT)调试而不是此对话框的详细信息,************** 异常文本 **************System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.IO.DirectoryNotFoundException: 未能找到路径“C:\Windows\system32\Resource\PrtTemplate.xml”的一部分。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)......省略一部分 在 KuaidituSystem.Com.Tkang.Kuaiditu.Print.KuaidituPrint.loadPrintTemplate(String p_tempateFile, String expressCompany) 位置 I:\cs源码\92cs\kuaiditu\Com\Tkang\Kuaiditu\Print\KuaidituPrint.cs:行号 28 在 Kuaiditu.Main.PreviewButton_Click(Object sender, HtmlElementEventArgs e) 位置 I:\cs源码\92cs\kuaiditu\MainForm.cs:行号 216 --- 内部异常堆栈跟踪的结尾 --- 在 System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) 在 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) 在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder,
未能找到路径“C:\Windows\system32\Resource\PrtTemplate.xml”的丛李袜一渗激部分。 打印扰斗配置文件找不到