cancel
Showing results for 
Search instead for 
Did you mean: 

Printing a PDF from Adobe on network with latency issues

CynthiaVranesa
Level 3
We're having trouble printing pdf documents on a network printer using Adobe.  We're cannot define the printer as a default, and are using a data item to pass the printer name into a command line to open and print the file in one action.  Our expression is " /N /T " & Chr(34) & [Output Results.Path]& Chr(34) & [PrinterName]

In Studio and in de-bug mode, our process loops through all the files, runs cleanly and prints all files.  On a resource, some files print while others are skipped.  No errors are thrown.  We think its a latency issue around having to select the printer and the slow response of our network when running at full speed on the resource.

Our first attempt was using application modeler and command line AcroRd32.exe /P PdfFile.  The bot failed to find the query item in the navigate stage despite being attached.  

Does anyone have suggestions?

------------------------------
Cynthia Vranesa
Senior Financial Reporting Manager
Sally Beauty Holdings, Inc
America/Chicago
------------------------------
1 REPLY 1

nobu
Staff
Staff
Hi Cynthia,

> In Studio and in de-bug mode, our process loops through all the files, runs cleanly and prints all files. On a resource, some files print while others are skipped. No errors are thrown. We think its a latency issue around having to select the printer and the slow response of our network when running at full speed on the resource.
As you mentioned, the slow response from the printer cause this issues. So, when you run the process in NOT debugging mode (e.g., control room, scheduler), you need to add some pause to complete a print job before the next print request is sent.

> Our first attempt was using application modeler and command line AcroRd32.exe /P PdfFile. The bot failed to find the query item in the navigate stage despite being attached.
To execute a command line, Code stage would be a good option since you don't need to attach any application (e.g., CMD). Please check the following code. Please change the fine name and printer name based on your system environment. 

Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo("AcroRd32.exe")
startInfo.Arguments = " /p /s /o /t ""C:\TEMP\Sample PDFs\Sample 1.pdf"" ""Brother MFC-L2740DW series Printer (redirected 2)"" "
System.Diagnostics.Process.Start(startInfo)

Regards,

Nobu

------------------------------
Nobuhiro Tokushige
Product Specialist
Blue Prism
Australia/Sydney
------------------------------