Using scripting in SSRS
Can you use either client scripting(JScript / JavaScript) or server scripting(VBScript) in SSRS? I would like to create links for each record in my report, to call an application (.exe) and possibly pass parameters to it as well. Is this possible?
May 23rd, 2007 7:41pm

The "Action" property for each textbox/label/etc can be used to dynamically create a standard hyperlink, and using VBScript, you could add parameters to the URL querystring easily. Client scripting is a little trickier, but possible. The URL in the Action propertycan be in the "javascript('dothis') " format, and is often used to create pop-up alerts and such. If you need something more powerful than a line or two of code can provide, you can use the URL to call a javascript function embedded in the page itself, and then place your report on an ASPX page with the Report WebControl, and then embed your client-side code in the ASPX page. You can add parameters to the function call during the report generation that are custom to each row. Essentially the URL property is placed in the "onclick" action tag for the rendered textbox. Hope this helps, Geof
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2007 10:21pm

How does one go about embedding a javascript function in the SSRS report? I need to have function that launches another process - like a command line batch Thanks Stever
January 10th, 2011 3:24pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics