Quantcast
Viewing all articles
Browse latest Browse all 3636

Printer Not Install, but they are there !!!

Hello

I'm usingCRforVS_redist_install_64bit_13_0_5inWindowsServer 2012. Framework4.5on clients

Runningaweb servicefor printing.

 

When I try toassigna printer withthe followingcode:

 

 

 

Dim pname AsString = ""

Dim foundprinter AsBoolean = False

ForEach pname In System.Drawing.Printing.PrinterSettings.InstalledPrinters

     If pname.Trim = NomeImpressora.Trim Then

          oRpt1.PrintOptions.PrinterName = pname

          foundprinter = True

     Exit For

EndIf

Next

 

"NomeImpressora" is the nameof the printerto print

 

I getan errorof "Noprintersareinstall"

 

Butthe printeris in the collectionofavailableprinters.

 

The following linksolvesthe problem, butthe solutionis notcorrectbecausethe printer isvisibleto the collection.

http://support.microsoft.com/default.aspx?scid=kb; en-us; 184291

 

Suggestions?


Viewing all articles
Browse latest Browse all 3636

Trending Articles