cancel
Showing results for 
Search instead for 
Did you mean: 

Error Printing report: RPC server is not available

Former Member
0 Kudos

Hi!

I'm working with visual studio 2008 and Crystal Reports XI R2, and I'm trying to direct print my report using this code:

Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocument

....

report.Load(Server.MapPath("reports/rpt/rpt_receita.rpt"))

report.RecordSelectionFormula = "{Receita_Cab.IdR}=" & IDR

Session("report") = report

report.PrintToPrinter(1, False, 0, 0)

When I try to print in client PC /browser, It gives me the error RPC server is not available in the line report.PrintToPrinter(1, False, 0, 0). My gol is to print to the default print in the client pc.

I already try local printers, shared printers, PDF Creator Printer, and always the same error...

If I run my website using visual studio everithing works fine.

Any Ideias?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello,

See this MS Kbase article on how to expose local printers to the IIS WEB Service:

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

Thank you

Don

Former Member
0 Kudos

Hi!

Thanks, but, I try that, and nothing happens.

Any Ideas?

Thanks again.

0 Kudos

Next is to use Service Pack 4 and SP 6:

https://smpdl.sap-ag.de/~sapidp/012002523100009114712011E/crxir2sp4_fullbuild.exe

https://smpdl.sap-ag.de/~sapidp/012002523100009114412011E/crxir2sp6_incremental.exe

It's a full build so make sure you have your keycode available, it requires an uninstall first.

If that doesn't work then you'll have to start adding debugging and using various logging tools to find out what is causing the error. Things like Fiddler and ProcessMonitor can help.

You may want to post to Microsoft's Forums also to find out what that message means.

Don

Answers (0)