Trying to create a PDF file. File was being created in the past but now for last few days the same file is not getting created(NAV 2009 r2). Also, when i am attaching the same file on mail i am getting the following error :-
"Attachment E: CBD Files Cash and Bank Day Book April 5.pdf does not exist or can not be accessed from the program"
The folder has got all the permissions still facing the issue for last few days. Please guide me how to proceed or what can be done or some other way to sort it out.
Code:-
Name1 := STRSUBSTNO(‘Cash and Bank Day Book %1.pdf’, FORMAT(CALCDATE(’-1D’,TODAY),0,’ '));
ToFile1 := Name1;
Filename1 :=‘F:\CBD Files’+ToFile1;
REPORT.SAVEASPDF(REPORT::“Day Bank Cash Book Rpt”, Filename1);
Hi,
Can you try running the Codeunit / Report from Service Tier directly.
My Thought is - If the code was working earlier then it might be system issue not the code related. I am trying to figure out where the problem is.
Please Run the Codeunit / Report from Service Tier Directly and see the file is getting generated or not.
Yes i mean run the code for saving report from service tier. not the RTC Report.
You have some code to save it to PDF right so execute that from NST machine.