delphi-通过电子邮件发送
我有 XDbgrid 和 XDBcolumnsDialog 和 XQRgrid,它们都连接到数据库视图,以允许用户查看他的数据并选择要打印/显示和排序的列等。
现在我想通过导出从同一网格通过电子邮件发送用户的选择将文件复制到 C 盘,然后使用此代码通过电子邮件附加它
JvDBGridHTMLExport1.FileName:= 'c:\Items.html';
JvDBGridHTMLExport1.ExportGrid;
SendMailWithAttachments('', 'subject', 'body', 'c:\Items.html');
我的问题是:JvDBGridHTMLExport1
不适用于 XDBgrid
,它仅适用于 DBgrid
我该如何解决这个问题,或者有更好的方法吗?
I have XDbgrid and XDBcolumnsDialog and XQRgrid, all connected to a database view to allow the user to see his data and select which column to print/to show and to sort etc.
Now I want to email the user's selection from that same grid by exporting the file to the c drive and then attach it by email, using this code
JvDBGridHTMLExport1.FileName:= 'c:\Items.html';
JvDBGridHTMLExport1.ExportGrid;
SendMailWithAttachments('', 'subject', 'body', 'c:\Items.html');
My problem is that:JvDBGridHTMLExport1
don’t work with XDBgrid
, it only works with DBgrid
How do I solve this problem, or is there a better approach?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论