cancel
Showing results for 
Search instead for 
Did you mean: 

Error Printing Report from Crystal Reports WPF Viewer in .NET 4.0 and Citrix

Former Member
0 Kudos

We have a .NET application (in-house built) that prints using Crystal Reports for Visual Studio 2010. It runs in a Citrix XenApp context. If we run an on-screen report, using the Crystal Reports WPF viewer control, we see the report as expected. However, if we then click the Printer icon within the CR WPF viewer, we get the following error:

    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()

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Richard

This being a Citrix environment, my suspicion would be permissions. See if you can run the app as Admin.

Download the Process Monitor utility. Filter it for your app exe. Run the app until you get the error. Then look at the logs and search for "Access Denied" messages.

Oh, and make sure you're using SP5:

http://scn.sap.com/docs/DOC-7824

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Hi Ludek,

I've passed this information across to the chap responsible for the Citrix environment.

I've also seen another possibly similar issue at http://scn.sap.com/thread/1277871. Unfortunately the issue referred to in the answer is a broken link. Do you know what the resolution to this thread was?

Richard

Answers (0)