Windows Server 2012 R2 is preventing .NET Application print the file?

Home Forums Server Operating Systems Windows Server 2012 / 2012 R2 Windows Server 2012 R2 is preventing .NET Application print the file?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    TarcisioTh
    Member
    #167354

    I’m going through both scenarios:

    I have a C# .NET Framework [URL=”http://asp.net%29rest/”%5DASP.NET%5B/URL%5D Rest API which saves a PDF file to the disk and sends it to Printer.

    • Locally, logged directly in Windows 10 64-Bit, getting succesful using Ghostscript 9.22 for Windows 32-Bit Driver and GhostScript.net library, sending a file to Network Printer and out of Network using AcrobatReader as a PDF file sender to the default printer.

    Sending TXT file to the shared Printer at Network, the file is printed. At this point using C# code that call printer without Third Party libraries:
    System.IO.File.Copy(filePath, “\” + printerIP + “” + printerName);[/CODE]
    [LIST]
    [*]Remotely, connecting to remote Windows Server 2012 R2 Machine using TeamViewer, failed in each: using Ghostscript, the API loops indefinitely and don’t responses my API Call. Using Acrobat Reader, the application behavior is correct (the process starts and wait for 10 seconds which is reasonable to print a file), without loops or application exceptions, but doesn’t print the file.
    [/LIST]
    Testing in Windows Server 2012 R2, targeting the real scenario of API Application which is called from a Tablet, remotely scenario is observed too.

    I noted the Acrobat Reader not open the file as happened in success scenario locally, using Windows 10.

    For the purpose, I disabled the Firewall and Antivirus to facilitate the analysis.

    At this moment I am searching for considerations to solve this problem, trying to make the printing PDF File work in Windows Server 2012 R2.

    Can anyone help me?[CODE]System.IO.File.Copy(filePath, “\” + printerIP + “” + printerName);[/CODE]

    • Remotely, connecting to remote Windows Server 2012 R2 Machine using TeamViewer, failed in each: using Ghostscript, the API loops indefinitely and don’t responses my API Call. Using Acrobat Reader, the application behavior is correct (the process starts and wait for 10 seconds which is reasonable to print a file), without loops or application exceptions, but doesn’t print the file.

    Testing in Windows Server 2012 R2, targeting the real scenario of API Application which is called from a Tablet, remotely scenario is observed too.

    I noted the Acrobat Reader not open the file as happened in success scenario locally, using Windows 10.

    For the purpose, I disabled the Firewall and Antivirus to facilitate the analysis.

    At this moment I am searching for considerations to solve this problem, trying to make the printing PDF File work in Windows Server 2012 R2.

    Can anyone help me?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.