baanguy2
22nd March 2006, 18:43
I have a report which is printed from an AFS, which displays the output on screen and the AFS call is in a loop, so it comes back and prints the same report again, but before the next one displayed I need to kill previous report, how can this be done ?
Thank you,
mark_h
22nd March 2006, 20:20
Do the reports have to go to the screen? One solution is to send all of the reports to a file(using append option), after the program is done display the combined reports. I think there is a display.file() command in ottdlldisplay.
baanguy2
22nd March 2006, 23:34
Yes the report has to goto display as the people in plant will be looking at it and as the planning changes they need to see the next refreshed report on the screen.
Thank you
mark_h
23rd March 2006, 00:52
Check out this post (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14201&highlight=kill). I hesitate to recommend using the kill command, but it might work if you look for ttstpdisplay. Not a pretty solution. Right off hand I can not think of another way to do it.
baanguy2
23rd March 2006, 18:54
what will be the best way to kill the ottstpdisplay, i tried the line
stpapi.handle.subproc("session","ttstpdisplay","kill"), but it isn't working, any suggestions.
Thank you,
baanguy2
23rd March 2006, 19:53
Hi Mark,
Sorry, for that stupid question, i put that even before i looked at the link you sent, that link did help.
thank you very much,