Print directly remote printer

Posted by: ricgom731 on 18 June 2020, 2:16 am EST

    • Post Options:
    • Link

    Posted 18 June 2020, 2:16 am EST - Updated 30 September 2022, 5:08 pm EST

    Good day.

    I have an MVC web application …

    I use the instruction “PrintExtension.Print (rpt.Document, false, false);” to print directly.

    1. In a production environment in which the printer is physically connected to the computer that has the IIS, the report prints correctly.
    2. In a production environment within a workgroup where the IIS server is on one computer and the printer is on another computer, the report is not printed.

      In this second scenario what I do share the printer where it is physically connected and on the other hand on the IIS server I install that printer taking the one from the client computer, I also select as default this printer on the server.

      I do this because the application detects the connected printers on the server and not on the client.

      But because it is a remote printer does not print.

      Any possible solution?

    attached image of the remote printer registered in the IIS server

  • Posted 18 June 2020, 4:40 am EST

    Hello,

    I think it is a permission related issue. Have you connected the printer with the domain user?

    If yes, please configure your Application Pool Identity to a custom/domain user which has access/permission to print in network printers. Also, set the “LoadUserProfile” setting of Application pool to true.

    If it does not work, can you please try with Microsoft PrinterDocument, is it shows the same behavior?

    Thanks,

    Mohit

  • Posted 18 June 2020, 11:47 am EST

    The printer is in a workgroup.

    You tried to make the identity a user that is on the client and on the server, but it still doesn’t work. Could you show me examples in images, more graphics to give me an idea of ​​how the configuration of the application Pool would be? please

  • Posted 19 June 2020, 5:52 am EST - Updated 30 September 2022, 5:08 pm EST

    Hello,

    You can try with both settings as shown in the attached images.

    If the issue still occurs, could you please share the result with the MS PrintDocument

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels