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