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

Email-- Attachment appears multiple times

edited April 2009 in General
Hi,

I am trying to email reports using Report Builder, It works fine first time,
after that attachments keeps on adding. Eg If i click first time, it
attaches one copy of the report, if i click it again, it attaches 2 copies
and so on.. And also if i move to another record and try to email, it
somehow tries to attach pdf file from first record. I know i messed up
something , but could not figure it out.

Using Delphi 2005 and rb 10.0.6

Code.

RptForm.ReturnToStock.EmailSettings.FileName
:=CCTDM.UnitDispositionTblCOMP_USER_SEQ_NBR.Text+CCTDM.UnitDispositionTblCOMP_SEQ_NBR.Text+'_JoblotForm.pdf';
RptForm.ReturnToStock.EmailSettings.HostAddress := 'xxx.yyyy.net';

RptForm.ReturnToStock.EmailSettings.Enabled := True;
RptForm.ReturnToStock.EmailSettings.ShowEmailDialog := True;

RptForm.ReturnToStock.EmailSettings.PreviewInEmailClient := False;
RptForm.ReturnToStock.EmailSettings.Subject := 'Testing Email';
RptForm.ReturnToStock.EmailSettings.Recipients.Text :='xxxx@hotmail.com';
RptForm.ReturnToStock.EmailSettings.Body.Text := 'See Attached Report...';

Any help will be highly appreciated.

Thanks,Praveen.

Comments

  • edited April 2009
    Hi Praveen,

    Please upgrade your version of ReportBuilder to 10.09 and test with that.
    We made numerous fixes to the email functionality between 10.06 and 10.09
    (and 11.03 :). For upgrade instructions, please contact
    info@digital-metaphors.com with your serial number and purchasing email
    address.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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