【问题标题】:Can we send other report file as attachment along with SSRS subscription report?我们可以将其他报告文件作为附件与 SSRS 订阅报告一起发送吗?
【发布时间】:2021-07-09 14:47:52
【问题描述】:

我有一个每月使用 SSRS 订阅发送给用户的月度报告(通过电子邮件发送)。我现在的要求是在月度报告中附加一份报告作为附件。

因此用户必须接收月度报告和其他报告的附件。

是否可以附加/发送其他报告文件以及通过电子邮件发送的 SSRS 订阅?

【问题讨论】:

    标签: reporting-services email-attachments ssrs-subscription


    【解决方案1】:

    不,不能通过 SSRS 的电子邮件订阅附加另一个文件。

    我认为最好的方法是创建订阅以将文件放入文件夹中,然后创建一个存储过程来创建电子邮件并附加文件。

    以下是有关 sp_send_email 的更多详细信息:

    https://dba.stackexchange.com/questions/99326/sp-send-dbmail-stored-procedure-send-with-attachment

    SQL sp_send_dbmail send email with attachment, pdf file got corrupted

    https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-send-dbmail-transact-sql?view=sql-server-ver15

    【讨论】:

    • 感谢@Fist,以上解决方案解决了我的问题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-26
    • 1970-01-01
    相关资源
    最近更新 更多