mr_suleyman
3rd September 2004, 10:05
Hi all,
When I run any report session , I get report with random file name like tmp083498816_23669.bpf. After running it , I look at my tmp folder, I see file name like tmp083498816_23669.bpf . İs there a way to know this file names in report script ?
NPRao
3rd September 2004, 10:27
Refer to -
Spool Predefined variables (http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_overview_and_synopsis)
string spool.fileout(100) Path name for spooler output file.
mr_suleyman
3rd September 2004, 13:19
Hello NPRao,
In my code , I used RPRT_OPEN() functions. When I use spool function ,
I couldn't get report and path. I wrote followings:
spooler = spool.open("rtcqms443011000","W",2)
message("SPOOL:%d",spooler)
|***** I got spooler id = 1453 then it works
spool.id = spooler
path = spool.fileout
| there is no value that gave me for path
spool.close()
I read that spool.fileout works after using main spool functions like spool.open(). Is there a any way to get report file name in RPRT functions and where can I get in script ???
Hitesh Shah
3rd September 2004, 16:05
Spool.fileout is intialized when using ASCIF/ASCIT output even if u use rprt_open or brp_open functions.
The bpf file at client starts with the tmp file name stored in g.tmp.file. But it's not exactly the same. The file in g.tmp.file is used by program ttstpsplclose and converted to the bpf file and transferred to the client.