on 02-10-2012 9:41 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.