The PrintToPrinter() problem-->The RPC server is unavailable RRS feed

  • Question

  • User1326168122 posted


    I am faceing some Problem on Crystal reoprt Printing. I want help of Others.

    For printing i wrinte the following code

    ReportDocument rpt;


    rpt.PrintOptions.PrinterName = DropDownList1.SelectedValue;
    rpt.PrintToPrinter(1, false, 0, 0);

    but it shows the following error

    The RPC server is unavailable

    How can i slove it.

    Any Solution??

    Tuesday, September 1, 2009 3:31 AM

All replies

  • User1710623990 posted

    Do check that the RPC services are running

    Also contact your network administrator that you cannot access the printer from the network applications. A network setting will solve this issue I guess

    Hope that helps !!

    Friday, September 4, 2009 5:23 AM
  • User528608107 posted

    I'm also facing the same problem ! did you solve it ? Please advice 

    Wednesday, November 3, 2010 3:40 AM