Re: output report to pdf and attach to mail
Aldevinas Katkus
5-19-21
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
Lilian Wanyoike
Hi, Spinners & Spinners are currently on version 8.5 2022-02-02 (build 85420830). they have been experiencing a network lag. Action taken: - Checked logs and confirmed that they had not whiteli...
14:13 30 Aug 2024
Lilian Wanyoike
Hi, Spinners & Spinners are currently on version 8.5 2022-02-02 (build 85420830). they have been experiencing a network lag. Action taken: - Checked logs and confirmed that they had not whiteli...
14:13 30 Aug 2024