veerle
30th June 2003, 13:05
Hey,

I have a printproblem. I've created a report to send to excel.
When i select the device, i 'ld like to change the output file.

Actually i think i must use the predefined var 'spool.fileout', but it doesnt'work well. I get always <tmpxxxxxxx.txt> filename.

Do you have a idea what i do wrong?

Thanks in advance,

Veerle

mark_h
30th June 2003, 16:07
On our UNIX system when using the excel device Baan uses the spool.fileout to create the file on the server. It then downloads this onto the client using the tmpXXXXXXXXX.txt file you talk about. One way I can think to get around this is to write your own ttstpconv type device driver and download the file yourself using the server2client command. You can see an example in the code and utilities forum.

Mark

NPRao
1st July 2003, 02:00
If you like to change in your program you have to use the code-

import("spool.fileout", spool.fileout)

More info about spool.fileout from the object info -

extern string spool.fileout(100)

You can also check the device data if the option to - Change Output File is allowed or not.