billydeng
2nd June 2011, 08:44
Hi Guys

need a little help here!!

I had a device in device data which is notepad, and I give the path something like c:\temp\somefile.txt.

the report does go to that directory however the file is actually named 'somefile'.

My question is is that possible to send the report to the directory with the name which is the document name rather than a fixed file name?

Regards
Billy

mohammed
2nd June 2011, 10:46
u can use mark's "Creating your own ttstpconv Sample"
customize it according to ur requirement
Creating your own ttstpconv Sample (http://www.baanboard.com/baanboard/showthread.php?t=513&highlight=ttstpconv)

ashishjain
15th June 2011, 21:48
You can change the file name at "Output File" path.
Please refer the attached doc.

Or if you don't want to do it manually then there is a predefined variable "spool.fileout". Just assign file name with complete file path before opening the report.
Example.

spool.fileout = "c:\temp\" & "<Your File Name>"

Click on below link to see more spool functions.

http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_overview_and_synopsis