Pierre Boyer
5th July 2004, 13:48
I need to retrieve the filename (like $BSE/tmp/tmp080029888) that a Baan-Print-session generate for printing the data.
I have to retrieve and use it in the session script after the spool.close() or brp.close().
:confused:
HakanT
5th July 2004, 14:24
There is a global variable called spool.fileout that contains the path name of the output file. This variable is a string with length 100.
Pierre Boyer
5th July 2004, 14:46
the variable spool.fileout will only be used and filled by device-Type= "to file" or "append to file" and contain the final filename, gived from the user in the print dialog mask, or from field "ttaad300.path".
What i need is the name of the native "temp-file" that will be gived with "%s" in the session ttaad3100m000 like this:
/usr/bin/lp -c -dmyprinter -n%d -s %s
This tempfile-name will be logged in the ttaad320 tables. :confused:
mark_h
5th July 2004, 21:22
I recommend putting both the session and the script in debug mode. The list all the variables in each. I know you should be able to find the temp file name in the report, not sure about the script. You could then probably run it through ttstpconv to make it readable.
Mark
Pierre Boyer
6th July 2004, 08:32
Thank you for the good tips,
I have found the variable "g.tmp.file" by debugging the print the session.
:)