将XLS中的访问表附加到Outlook对象电子邮件 [英] Attach an Access Table in XLS to outlook object email

查看:70
本文介绍了将XLS中的访问表附加到Outlook对象电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须每周向100多人发送定制报告。 该报告是一个表格,有20列。 最多可能有50行。 该报告由查询创建。 我尝试了SendObject,但被Outlook Security
警告所困。  我正在尝试使用Outlook对象来创建电子邮件。 我可以将报告作为csv或txt放在电子邮件正文中。  报告的大小使得阅读非常困难。 我可以将表格或
记录集导出为XLS文件,然后将其作为附件附加到电子邮件中。 这使得程序非常慢。

I have to send a customized report to over 100 people weekly.  The report is a table and has 20 columns.  It may have up to 50 rows.  The report is created by a query.  I tried the SendObject, but get trapped by the Outlook Security warnings.  I am trying to use the Outlook object to create the emails.  I can put the report as csv or txt in the body of the email.  The large size of the report makes it very difficult to read.  I can export the table or recordset as a XLS file and then attach it to the email as attachment.  That makes the program very slow.

我真正想做的是附加一个表对象或一个记录集对象作为Outlook.Application电子邮件的附件。 我找不到办法做到这一点。 

I really want to do is to attach a table object or a recordset object as an attachment to the Outlook.Application email.  I can't find way to do that. 

有什么建议吗?

推荐答案

如果你真的想继续使用Outlook ,然后你唯一的方法是使用Outlook Redemption,请参阅:
http://www.dimastr .com / redemption / home.htm

就个人而言,我会切换到CDO并附上外部文件。  ;生成csv,txt,xls不应该非常耗时(特别是对于只有100人)。 您还可以使用循环机制直接在
电子邮件中生成数据的html表(这不是很难)。

Personally, I'd switch over to CDO and attach an external file.  Generating csv, txt, xls should not be very time consuming (especially for only 100 people).  you could also use a loop mechanism to genrate an html table of the data directly in the e-mail (this isn't very hard to do).


这篇关于将XLS中的访问表附加到Outlook对象电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆