Skip to Content
0
Former Member
Feb 10, 2012 at 09:41 AM

Error Printing report: RPC server is not available

550 Views

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?