Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么在Citrix上从.NET应用程序打印时会出现此错误?_C#_.net_Wpf_Crystal Reports 2010 - Fatal编程技术网

C# 为什么在Citrix上从.NET应用程序打印时会出现此错误?

C# 为什么在Citrix上从.NET应用程序打印时会出现此错误?,c#,.net,wpf,crystal-reports-2010,C#,.net,Wpf,Crystal Reports 2010,我们有一个使用Crystal Reports for Visual Studio 2010打印的.NET应用程序(内部构建)。它在Citrix XenApp上下文中运行。如果我们使用Crystal Reports WPF viewer控件运行屏幕上的报告,我们将按预期看到报告。但是,如果单击CR WPF查看器中的打印机图标,则会出现以下错误: An exception occurred while getting the default printer. Win32 error: The sys

我们有一个使用Crystal Reports for Visual Studio 2010打印的.NET应用程序(内部构建)。它在Citrix XenApp上下文中运行。如果我们使用Crystal Reports WPF viewer控件运行屏幕上的报告,我们将按预期看到报告。但是,如果单击CR WPF查看器中的打印机图标,则会出现以下错误:

An exception occurred while getting the default printer.
Win32 error: The system cannot find the file specified.
System.Printing
at System.Printing.LocalPrintServer.GetDataFromServer(String property, Boolean forceRefresh)
at System.Printing.LocalPrintServer.get_DefaultPrintQueue()
at SAPBusinessObjects.WPF.Viewer.PrintControl.ShowPrintDialog()
at SAPBusinessObjects.WPF.Viewer.ReportAlbum.PrintReport()