novicebaan
28th April 2004, 08:36
Hello all,
while i am copying a file from server to baan by writing the following command
send.report.to.client(tmp.file,strip$(local.path))
it is giving the following error
Error -1 copying file to pc may not have the permission
pl give some suggestion for the same
bye
lbencic
28th April 2004, 17:00
Hi - where is that command defined, the 'send.report.to.client'? Hard to say why from just that description, can you post more of the code? In debugging, do you see what you think are the correct values for your paths and such?
Also, complete shot in the dark, but the server2client standard function uses ftp to move the files, it is likely that your 'send.report.to.client' one does too. I am not an administrator, but you need to make sure your PC has FTP rights to the server.
You can also check this link, about Windows path and a problem with long path names. There are other posts that may be of help as well, try searching for 'server2client'
Post about long path names (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14840&highlight=include)
Good luck!
wimvg1
28th April 2004, 17:57
Hello,
I don't know "send.report.to.client" or if there is a single command to copy a file from server to client but i know that the file handling functions can be used for copying files from server to client.
Server Client
fp1=seq.open("..","r") fp2=seq.open.local("C:\...", "w",1)
seq.gets(buffer,..,fp1) seq.write.local(buffer,,fp2)
seq.close(fp1) seq.close.local(fp2)
For the client functions you need to include the library ottdllbw
With these commands you use the permissions of you current PC-client.
Can you pass me any docu regarding "send.report.to.client" ?
Best Regards,
novicebaan
29th April 2004, 12:07
thanx for the relply, c:\ drive was write protected . after solving this problem now it is working fine