Hi Folks -
I have created a processing report to run through the customer table and save a report as .PDF and then email the .PDF document. Everything works fine, email is sent and attachment is there but when you open the .PDF when email is received, it says cannot load file basically it has 0 bytes. Nothing is written to the blob file. Below is the code.
FileName := SMTPSetup."Save PDF Report"+'Statement' + CustRecNew."No." + '.PDF';
Saved := REPORT.SAVEASPDF(50183,FileName,CustRecNew);
ServerFileName := FileMgt.UploadFileSilent(FileName);
Can someone please help me out here. Any help is truly appreciated.