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
------------------------------