jayugandhi
8th May 2014, 14:42
Hi all,

I have generated a file, now i need to copy it to user specified location through save dialogbox.
i am using seq.saveas.dialog.local and bic_desktop header file but its giving me error while compiling.

please give me a solution or any other undocumented function.

thank you.

mark_h
8th May 2014, 15:28
This is the correct forum for questions like this. The code and utilities forum is where you working solutions and code you developed. Sorry I can't answer your question since I always use server2client functionality.

bhushanchanda
8th May 2014, 16:03
long ret
path = ""
if seq.saveas.dialog.local ("my_file", "", "*.txt", path) then
exec_dll_function( "ottdllbw" , "server2client" , ret, file.path, path, 0 )

if ret < 0 then
message("Error during transfer of file to local machine.")
else
message("File transfered successfully at your Machine")
seq.unlink(file.path)
endif
endif
app_start(path, "", "", "", "")

Use #pragma used dll ottdllbw in your script.

jayugandhi
9th May 2014, 09:02
thanks mark & bhushanchanda.

bhushanchanda
9th May 2014, 10:49
Hi,

Please post your solution. Let people know what was the issue. It might help others.

jayugandhi
9th May 2014, 11:40
Hi,

I choosed little different way to do that.
i did it by putting an extra field on form of "drive" and make the user to enter the system drive name in that field so file copied to that location.

i have to go with this way as "seq.saveas.dialog.local" is giving me a compilation error in baan, i checked it in ln nd works fine there.

vamsi_gujjula
9th May 2014, 13:51
http://www.baanboard.com/baanboard/showthread.php?t=26814