Many screens in SL (we use 6.5) prints reports directly to printer. e.g. Allocation Processor (PA.PRO.00) runs the process and then prints to printer which is currently configured.
What I'm looking for is a way in which I can control this default behaviour and redirect the output to a file. One way to achieve is to set pdf printer before running this process. Another way is to set "Print to file" under Printer Setup (98.220.00). The problem with these two approaches is that users need to remember (many times does not) to set this prior to running the process. Is there a way by which when this screen is opened, I can write some VBA code that will change the printer setup? And then set it back to whatever it was before upon close.
To this effect, I came across RptRuntime in system database where I can set the ri_printer to A and ri_outfile to full path filename. This works except that the report gets exported in ASCII rather than pdf (which it does when "Print to file" is set).
Any hints, pointers, thoughts are appreciated.
TIA
*This post is locked for comments