Print order ignored?

Discuss RoboTask here
Post Reply
snowseals
Posts: 62
Joined: Mon Apr 11, 2016 10:17 am

Print order ignored?

Post by snowseals »

I've made a task, so it prints 3 files in a certain specific order.
The files are 2 PDF's and 1 DOCX file.

Side-note: I've limited what to print, based on last modification date (between now and 5 minutes before, not that it should matter?).

The sequence is print PDF1 1st, then WORDDOC, then PDF2.
However, when I look up the print tasks, the WORDDOC always comes first.
As if, the sequence/order is ignored?

How can I force it to print in the order described above?
I've tried adding each print task indivually within the Robotask task set in proper order = failed.
I've tried adding 3 print tasks within 1 task, so 1 print task per line in the proper order = failed.
Robotask in attachment.
Action.png
Action.png (14.71 KiB) Viewed 10027 times
Print tasks.png
Print tasks.png (13.42 KiB) Viewed 10027 times
Attachments
07 d - Alles afsluiten & uitprinten.zip
(1.3 KiB) Downloaded 48 times
Oleg
Site Admin
Posts: 3188
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Print order ignored?

Post by Oleg »

The problem is that RoboTask does not print documents directly. It uses system shell mechanism.
That is:
  1. RoboTask sends a command to the command shell to "print document".
  2. The shell launches the appropriate application: PDF Viewer, MS Word, etc.
  3. The program opens the document and sends it to the printer
MS Word may be faster than PDF Viewer
I recommend to do pauses between printing one document

Code: Select all

Print {PDF1}
Pause 10 sec
Print {WordDoc}
Pause 10 sec
Print {PDF2}
Oleg Yershov
snowseals
Posts: 62
Joined: Mon Apr 11, 2016 10:17 am

Re: Print order ignored?

Post by snowseals »

I've added 500ms in between the print jobs:
Works, thank you Oleg! ;)
Post Reply