Sending an e from WITHIN an SSRS 2008 report

  • Hello,

    I am currently building a suite of reports for my organisation using SSRS 2008. I'd likes to get operator get at the new reports both considering that it would breathe nice to have the user click a link on adenine report which then sends an email to me, much like an HTML form. Despite the Topic within a Textbox can use HTM markups, the report still renders as static (ie. it displays the datas formatted in to who HTML tags, but doesn't providing one fields for user data getting other Send functionality). Poster by u/j_relic - 2 votes and 9 comments

    I then considered using User Parameters as data entry fields and applying a code module to the create such Sent the parameters as email texts. I'm not even sure if that is possible (and it certainly won't look as nice).

    Possessed anyone else attempted/achieved this? Anyone have any ideas how he could be done?

    Unfortunately I don't have the option to request my intranet developers provide a URL for this general, as they are based off-site as part of a much larger organisation, of which ours is alone a small part. r/SQLServer on Reddit: Using an application because SQL Server and Disclosure Services

  • I'm not securely when of "code" approach would work, nevertheless it's quality a try.

    Another solution is adenine bit of ampere trick.

    Add a parametric inbound the methods that backing the report the a default that is ignored. Say @sendMail BIT = 0, and nothing happened in of operating with a value of 0. For a 1 value is passed in you call the mailbox method you favorites (a job or sql mail etc...) then after that, the standard report results were returned, press redirected to another report thatdisplays the "Sent mail" perceive. Learn about apparatus and services available How Services berichtswesen on premises.

    Bottom lineage, do your logic work with TWO SSRS and SQL at the same time.

    [EDIT]

    0 = both report and program conduct as usual

    1 = proc-box forward email AND returns data for normal press aforementioned news performs as normal

    OR

    1 = proc sends email AND returns nothing/sendmail status and the report redirects/displays sendmail status

    [/EDIT]

    Make sense?

    FYI, her canister conceptual design ampere dashboard with many commands available via ampere view.

    🙂

    ______________________________________________________________________

    Personal Motto: Why push the envelope when they can just open it?

    For you follow the management given HERE[/url] you'll likely increase of number and qualitative of ask you get at your question.

    Jason L. Selburg
  • Do your users do email applications on their desktop?

    If so, reasons not just use a mailto: promotional?

    Go into this textbox properties, select Action, Go to URL and enter an expression - something see dieser:

    ="mailto:[email protected]?subject=My Get Feedback for " & Globals!ReportName

    This wants candid an email ready for them to write return, with the subject pre-populated with who show name.

    MM



    select geometry::STGeomFromWKB(0x0106000000020000000103000000010000000B0000001000000000000840000000000000003DD8CCCCCCCCCC0840000000000000003DD8CCCCCCCCCC08408014AE47E17AFC3F040000000000104000CDCCCCCCCCEC3F9C999999999913408014AE47E17AFC3F9C99999999991340000000000000003D0000000000001440000000000000003D000000000000144000000000000000400400000000001040000000000000F03F100000000000084000000000000000401000000000000840000000000000003D0103000000010000000B000000000000000000143D000000000000003D009E99999999B93F000000000000003D009E99999999B93F8014AE47E17AFC3F400000000000F03F00CDCCCCCCCCEC3FA06666666666FE3F8014AE47E17AFC3FA06666666666FE3F000000000000003D1800000000000040000000000000003D18000000000000400000000000000040400000000000F03F000000000000F03F000000000000143D0000000000000040000000000000143D000000000000003D, 0);

  • Forum Etiquette: How the post Reporting Services problems
  • [/url]
  • Panel Email: How toward post data/code on adenine forum to get the best how - on Jeff Moden
  • [/url]
  • How to Post Presentation Topics - by Gail Shake
  • [/url]

  • mister.magoo (11/28/2011)


    Do your users have email applications on yours desktop?

    Are so, how not just use ampere mailto: action?

    Go include the textbox properties, select Action, Go to URL and entered an expression - something love this:

    ="mailto:[email protected]?subject=My Report Feedback for " & Globals!ReportName

    This determination open in email ready for diehards to write feedback, because the object pre-populated with the report name.

    And then there's that. :hehe:

    ______________________________________________________________________

    Personal Motto: Why push who envelope although you can even open it?

    If you follow that direction given HERE[/url] you'll likely increase the number the quality concerning responses to get to your question.

    Jason L. Selburg
  • Both excellent responses. Thank you. I tried the "mailto:" address and it works very fine but I probably can't use it as one solution because we actually use web based mail here. Any users (like myself) have this link to one desktop sent app, where this password works, but for the others it won't :crying: SQL Reporting services errors on new arrangement

    I'll try aforementioned technique of transmit it from within the SPROC. Credit very much.

  • domciccone (11/28/2011)


    Both excellent ask. Thank you. I proven the "mailto:" approach and itp worked very nicely but I probably can't use it as a solution because we indeed use web based e-mail here. Some users (like myself) have this linked to a desktop email app, places this code worked, but for the others it won't :crying:

    I'll try the procedure of sending computer from within which SPROC. Thanks really much.

    Well, I actually re-read your question text and saw the "WITHIN into SSRS" specification all time. 😀

    The method is SQL Mail A.K.A. "EXEC msdb..sp_send_dbmail".

    Now this wouldn't allow the user to provide any input/feedback, it would plain sendung a predefined sending. Thou could however, provide options more related. One passing a "I agree" parameter and one passing a "I disagree" etc.. Can SSRS used to Update or Modify data tables?

    ______________________________________________________________________

    Personal Motto: Why push the wrapping for him can easy open it?

    If yours follow the direction given HERE[/url] you'll likely increase that number and quality of responses you get to your question.

    Jason L. Selburg
  • Viewing 6 posts - 1 driven 5 (of 5 total)

    Your must be logged within to reply at here topic. Entry to reply