The business people at my office would like be able to generate emails with
the results of a SQL query attached as an excel spreadsheet on demand.
Please note that these queries take more than 30 seconds so any use needs to
be asynchronous. Iâ'd like to have the same functionality as email sent to
subscribers, but without creating a subscription. Is there a way to do this
in SQL Reporting Services? If not is there a good alternative?
Thanks for any help.Hello,
Based on my experience, you need to write your customer .net code to
generate the excel file and send it to the user.
Reporting Services has provide a Web Services Interface and you could use
this to render the report to Excel.
Then you could use the code to send the file to the customer.
Here are the articles about how to use Web Services to render the Report:
How to create a sample application that uses the Reporting Services SOAP
APIs to render a report to a selected file format on a Web page
http://support.microsoft.com/kb/875447/en-us
ReportingService.Render Method (Reporting Services 2000)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/
rsp_ref_soapapi_service_lz_6x0z.asp
ReportExecutionService.Render Method (Reporting Services 2005)
http://msdn2.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswe
bservice.rsexecutionservice2005.reportexecutionservice.render.aspx
Also, here is a sample for how to send the email
Send Mail Sample
http://msdn2.microsoft.com/en-us/library/ms173026.aspx
Hope this will be helpful!
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Monday, March 12, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment