彩票走势图

彩票走势图 > 慧问 > 频道

FastReport如何使用代码通过电子邮件以PDF格式发送报告?

发表于2021-07-20 回复:5 查看:3143  |  

Use this snippet for it:

Report report = new Report();

report.Load(...);

report.RegisterData(...);

report.Prepare();


PDFExport pdfExport = new PDFExport();

EmailExport export = new EmailExport();


// set up Account properties...

export.Account.Host = "...";

export.Account.Address = "...";


// set up email properties...

export.Address = "...";

export.Subject = "...";

export.MessageBody = "...";


// send email

export.Export = pdfExport;

export.SendEmail(report);

0个回答

打破零回复...

回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP