Email-- Attachment appears multiple times
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com