Batch Printing PDF Reports from FDM Batch Load Process
I have a process that is running a lights out batch load that generates a set of reports during month end close. There are 3 reports that I need printed to a specific printer. I have a script in place to print the reports to the network printer that works without issue when run on its own. The issue I am having is when calling this script from FDM via a shell and wait call:
vExecString = "c:\ncs\audit\psexec.exe /accepteula " & TargetServer & " " & strQuote & " \Scripts\Launch_Print.bat" & srtQuote
API.DataWindow.Utilities.mShellAndWait vExecString, 0
This calls the print script and runs but the actual printing to the network printer never actually runs. The scripts fires and creates a log saying that it is working but files never get added to the spooler unless I manually run the script. Both are being run by a admin\service account in both situations. I am not sure what the issue is. I had a similar issue with calling a script that was performing a copy/move function from a remote server where the script would fire but never actually complete the copy/move between the servers.