I have some simple code to genereate file on server and then download to the client
FileMgt --> codenit 419
Like this
FileName := FileMgt.ServerTempFileName('txt');
FileMgt.DownloadTempFile(FileName);
This code working, but when the same code runing with NAS then not working.
Is exist any restrictions when working with nas for codenit file management?
have a nice day
0
Comments
I think this is probably caused by permission issue.
Does NAS has enough permission to access this folder on the server ?
"He" is administrator
viewtopic.php?f=32&t=57992
There is no need to download a file that already exists on the server, is there ?
Just copy the file to the new location you are looking for
IF NOT GUIALLOWED THEN BEGIN
// This code is executed on NAS
FileMgt.CopyServerFile(SourceFileName,TargetFileName,Overwrite);
FileMgt.DeleteServerFile(FilePath);
END ELSE BEGIN
// This code is executed on the client
... file download
END;
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com