Hi all,
I am trying to create a Recurring Tasks that would print a Crystal Report to a networked printer.
Recurring Task runs at expected times and completes without error. I can verify that by looking at it in Usage -> Batch Server -> Query Management. Status column there says ‘Finished’.
However, the printer does not receive a print job and prints nothing.
I want to run the report programatically, so I’ve written this code:
$TEST_1
#Variable for report parameters
Local Char TBPAR_BP(15)(1..50), TBVAL_BP(30)(1..50)
#Run the report without the info message 'print executed'
Call ETAT("Z4GL","TESTMJ","",0,"",TBPAR_BP,TBVAL_BP) From AIMP3
When I run the script in Script Editor, the printer prints the report successfully.
Crystal Report for the sake of this task is elementary: just one text field, and no parameters.
Here is how I set up a task:
So the problem is not with a script, a report, or a printer, or a task per se, because taken separately they all work .
I suspect that something prevents task of reaching the printer, but not sure where to look.
Ideas appreciated.
Thanks