export mail

Salve sto provando a esportare un report in pdf via email con questo codice:

 RepName:= ExtractFilePath(Application.ExeName)+'rpt\'+'ASTVTH.fr3';


 DM.fxREP.ReportOptions.Name:=' INTERVENTO ';

 DM.frxPDFExport1.FileName :='InterventoTecnico.pdf';

 DM.frxMailExport1.Address   :='mioindirizzo.it';

 DM.frxMailExport1.FilterDesc  :='PDF per E-Mail versenden';

 DM.frxMailExport1.FromMail   :='suoindirizzo.it;

 DM.frxMailExport1.FromCompany :='azienda;

 DM.frxMailExport1.FromName   :=' Daniele';

 DM.frxMailExport1.Login    :='mioaccountmail;

 DM.frxMailExport1.Password   :='miapsw';

 DM.frxMailExport1.SmtpHost   :='smtp.tiscali.it';

 DM.frxMailExport1.Subject   :='invio da app';

 DM.frxMailExport1.Lines.Add('dovrebbe esserci allegato');


vedo che parte l'esportazione ma dopo qualche secondo mi restituisce access violation,

consigli ?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.