SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Is there a way to email a PDF version of rpt and render an HTML version in email body


Is there a way to email a PDF version of rpt and render an HTML version in email body

Author
Message
rdsb_2170
rdsb_2170
Old Hand
Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)

Group: General Forum Members
Points: 327 Visits: 98
Hi All,

I've been searched online to see if anyone has come up with a creative way to send a single mail with a SSRS report rendered 2 different ways. Example: send a PDF attachment, but also render SSRS report results in the body of email as HTML. I know you can set up 2 subscriptions, but I'm trying to avoid that approach. Any feedback is greatly appreciated.

Thank you,
Cervello
FridayNightGiant
FridayNightGiant
SSCertifiable
SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)

Group: General Forum Members
Points: 6036 Visits: 3412
Hi,
The way I achieved this was
Two subscriptions. One which places an excel version of the report onto a network share and the other which places a html version of the report onto a network share.
An SSIS package which runs a script task which picks up both files - creates an attachment of the excel file and puts the html into the body of the email.
This script task then sends the email.
It works well. Downside is there are 3 subscriiptions/jobs which need to be managed.
rdsb_2170
rdsb_2170
Old Hand
Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)Old Hand (327 reputation)

Group: General Forum Members
Points: 327 Visits: 98
Thank you for the feedback. I have not used SSIS
but will reach that option further. I appreciate the help!!!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search