Re: output report to pdf and attach to mail
Aldevinas Katkus
2021-05-19
I guess this should happen with other languages having non ansi charset, because setting the language to ENG, solves the problem.

//Set to English, otherwise fname does not match the file in the filesystem, see gaPDFEmailFiles output in the log if we set language to LIT
SetLangMode(LangEnglish,"ENG",2);
PrintDocument(IVr,docname,false);

LogText(0,"gaPDFEmailFiles=" & gaPDFEmailFiles);
if (FormLinkDocumentFilenames(Mailr,gaPDFEmailFiles)) then begin
RecordCopy(oldIVr,IVr);

IVr.Prntdf = 1;
RecordUpdate(oldIVr,IVr,false);
end;
SetDocumentFilename("");
gPDFEmailf = false;


SetLangMode(LangLithuanian,"LIT",2); //Reset back to local language
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Piotr Wycichowski
Hi! I am not able to run SERP client on Mac (Sonoma), when the folder is outside of Applications. When and why it happens? I know, that some users with the same system haven't such problem. ...
14:54 19 Sep 2025
Piotr Wycichowski
What version of SERP is ready for Tahoe? /Piotr W....
13:55 18 Sep 2025