Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Sendemail PDF Report Name

edited December 2011 in General
Hi,

I am using the "sendemail" procedure.

Everything works fine except I can't figure out how to set the Report
Name of the PDF attachment to anything except "Report.pdf"

I want to change this to something like "TVN Order Number XXX' so I want
to hard code before calling "Sendemail" like as follows

REp_Order.????.text :='TVN Order Number :
='+T_Ord_Head.Fieldbyname('Ord_No').asstring;

Trust this makes sense

Mike

Comments

  • edited December 2011
    Hi Mike,

    You can use the EmailSettings.FileName property to control the attached
    report's name.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2011
    Thanks Nico.
    I tried that ... Returns "Report.pdf".
    Maybe I am doing something wrong.
    Are you able to test and confirm ?

    Thanks.

    Mike
  • edited December 2011
    Hi Mike,

    In my testing this works correctly. Which version of ReportBuilder are
    you using? Are you loading templates? If so, remember that you need to
    set any properties after the template is loaded or the Template itself
    will overwrite your settings.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.