PDF filename send via email from PrintDialog
I can't change default file name of PDF attachment sent with email.
When I select Export and option to send mail instead of Print from Print Dialog I want to set file name of PDF attachment depending on any my variable.
frxReport.FileName := 'MyFilename'
not works.
When I select Export and option to send mail instead of Print from Print Dialog I want to set file name of PDF attachment depending on any my variable.
frxReport.FileName := 'MyFilename'
not works.
Comments
do not set the filename of the report. You have to set it to the PDF-Export object : frxPDFExport.Filename