AnuKass
19th June 2018, 10:32
hii...i'm new for LN program...
how to set output file path using program in report device..???
i want save the text file in server side without open select device window ??:confused::confused:

JaapJD
19th June 2018, 11:27
Fill spool.fileout variable.

AnuKass
19th June 2018, 12:27
hii..thanks for your reply ..
spool.device="w"
spool.fileout="C:\ERPLN\tmp\test2.txt"
rprt=brp.open("rtccom946501000","W",1)
brp.ready(rprt)
spool.close()
bt it can't save that file...still test2.txt empty ....
anything wrong in this ???

AnuKass
19th June 2018, 14:36
sry i think spool.fileout="test2" only
still now it write nothing ....

mark_h
19th June 2018, 14:49
Is c:\ actually on the server and not the client? Not an LN or windows expert by far, but when I see c:\ I think of the client.

AnuKass
19th June 2018, 15:24
hii...
i know that i already change spool.file="test2"
test2 is tmp file in server ..
bt it store only one record
i want store entire record......
pls anyone help me...

mark_h
19th June 2018, 16:43
Not familiar with spool.device of w but make sure you also close the report brp.close.

AnuKass
20th June 2018, 06:49
thank you ...now it's work ...