1418378 - How to determine what printers are available to a process in Visual Studio .NET

SAP Knowledge Base Article - Public

1418378 - How to determine what printers are available to a process in Visual Studio .NET

Symptom

Printer issues from report not printing, to "Background Processing" errors in Web applications.

Cause

Occasionally, the printer driver is not visible or available to the worker process.

Resolution

As a test, use the following code to ensure that the printer driver is available to the worker process:

Dim myPrinter As String
For Each myPrinter In System.Drawing.Printing.PrinterSettings.InstalledPrinters
    Response.Write(myPrinter)
    Response.Write("<BR>")
Next

See Also

To configure System Printers, see the Microsoft KBase COM objects fail to print when called from ASP

Keywords

forum thread , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V1