PrintDocument: Printing taking too long in IIS

1

I'm having an Automation project (Web Service) where one of the functions is to print a text file (plain) server side.

This Web Service calls a dll composed of a "PrintDocument" object and after adding some lines via "e.Graphics.DrawString", sends the content to the printer through the "PrinterName" method.

Everything works fine, but with a little detail: When the Web service calls this dll, it takes 1-3 minutes to print.

At first I thought it might be my routine, so I did a Windows Forms project using the same dll and printing time took almost nothing, a few seconds only.

I've tried everything, I've reviewed the internet and found nothing about it.

    
asked by anonymous 10.04.2016 / 01:19

0 answers