SAVEASPDF on Network Drive

ajayjainajayjain Posts: 99Member
Can you please help me on this
I am saving report as pdf on a network drive, we are on citrix with NAV 2016
when I run the code, it works fine but it is not working for other users, I made other users as super user
folder is shared with 'everyone' read/write
report.saveaspdf return true with no error but file is not created in folder

FileName := '\\myfolder\' + Customer2."No." + '.pdf';

ServerTempFile := FileMgmt.ServerTempFileName('pdf');
REPORT.SAVEASPDF(EmailTemplate."Report ID", ServerTempFile, Customer2);
FileMgmt.DownloadToFile(ServerTempFile,FileName); //copy to my network folder


or run directly
REPORT.SAVEASPDF(EmailTemplate."Report ID", FileName, Customer2);

both works for me but not with any other user

Please advise

Thanks

Ajay Jain
UK

Answers

  • Slawek_GuzekSlawek_Guzek Posts: 1,596Member
    Do others have permissions to '\\myfolder\' (by the way shoudn't the destination be defined as \\SomeServer\myfolder\ ?)
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • ajayjainajayjain Posts: 99Member
    hi, it was working fine next day, may be users need to reboot after permission set on their citrix profile :(
    Ajay Jain
    UK
Sign In or Register to comment.