cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print to printer solution

Former Member
0 Likes
1,554

Is there any solution for function "print to printer" which prints on the network printer without report viewer prompting. Direct print when action run.

View Entire Topic
Former Member
0 Likes

OK, sorry my English wasn't good. I'm using Asp.net web application to print reports on the network printer which located at the server..the user requested to print invoices directly to the network printer without any prompt of viewer which mean by a single click it prints, i search through the net and i found this solution "print to printer", this function work fine on local printer but when i try to print it on the client side there is this error message "The RPC server is unavailable " i had given full access to the printer on the network but it still not working. I search through net it seems to be a problem remain unsolved. So I'm here asking for solution, I need this done urgently. Thank you in advanced.

Enoch

Former Member
0 Likes

I'm not sure this is a Crystal Reports issue as such. In a nut shell, this indicates an issue communicating with the machine that has the printer installed.

Can you print to that printer using any other web app?

What version of CR are you using?

Add this code to your app to see if the app can actually "see" the printer:

Dim myPrinter As String

For Each myPrinter In System.Drawing.Printing.PrinterSettings.InstalledPrinters

Response.Write(myPrinter)

Response.Write("<BR>")

Next

Check out [this|http://support.microsoft.com/kb/184291/en-us] Microsoft kbase re. system printers

Make sure you can ping the server machine

Check that there is no firewall setting that would prevent communication with the printer

Ensure you are using correct machine name

Check the printer by printing a test page from Windows.

Make sure the printer is turned on and online.

Reinstall the printer driver.

If the OS is Vista, see [this|http://support.microsoft.com/gp/printing_problems] MS kbase

Make sure the domain controller has file and printer sharing enabled on its network card.

Ludek