<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Purple Frog Systems &#187; Report Link</title>
	<atom:link href="http://www.purplefrogsystems.com/blog/tag/report-link/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.purplefrogsystems.com/blog</link>
	<description>Business Intelligence Consultancy</description>
	<lastBuildDate>Mon, 23 Jan 2012 09:11:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Open SSRS report in a new Window</title>
		<link>http://www.purplefrogsystems.com/blog/2007/12/open-ssrs-report-in-a-new-window/</link>
		<comments>http://www.purplefrogsystems.com/blog/2007/12/open-ssrs-report-in-a-new-window/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 11:44:39 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Drillthrough]]></category>
		<category><![CDATA[New Window]]></category>
		<category><![CDATA[Report Link]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=7</guid>
		<description><![CDATA[There isn&#8217;t yet a built-in facility within Reporting Services to open a report link (i.e. a drillthrough report) in a new browser window or tab, however it isn&#8217;t too tricky to get this to work using a bit of javascript. javascript:void(window.open(Destination,&#8217;_blank&#8217;)) My preferred method is to wrap this up into a custom code function such [...]]]></description>
			<content:encoded><![CDATA[<p>There isn&#8217;t yet a built-in facility within Reporting Services to open a report link (i.e. a drillthrough report) in a new browser window or tab, however it isn&#8217;t too tricky to get this to work using a bit of javascript.</p>
<p><span style="color: #339966;"> javascript:void(window.open(Destination,&#8217;_blank&#8217;))</span></p>
<p>My preferred method is to wrap this up into a custom code function such as</p>
<p><span style="color: #339966;"> Function OpenURL(ByVal URL As String) As String<br />
Return &#8220;javascript:void(window.open(&#8216;&#8221; &amp; URL &amp; &#8220;&#8216;,&#8217;_blank&#8217;))&#8221;<br />
End Function</span></p>
<p>In your report, you can then just set the navigation property to jump to a URL of a website:</p>
<p><span style="color: #339966;"> =Code.OpenURL(&#8220;<a href="http://www.purplefrogsystems.com">http://www.purplefrogsystems.com</a>&#8220;)</span></p>
<p>Or to the path of a the drillthrough report:</p>
<p><span style="color: #339966;"> =Code.OpenURL(&#8220;http://[Your Server]/ReportServer?/Folder/ReportName&amp;rs:Command=Render&#8221;)</span></p>
<p>If you have parameters that you need to pass in, you can add these into the URL either fixed or dynamic:</p>
<p><span style="color: #339966;"> =Code.OpenURL(&#8220;http://[Your Server]/ReportServer?/Folder/ReportName&amp;rs:Command=Render &amp;MyFirstParam=Value1&amp;MySecondParam=&#8221; &amp; Fields!MyField.Value)</span></p>
<p>Please note that this will not work in the BIDS development environment, it will only work once you have deployed the report to the Report Server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.purplefrogsystems.com/blog/2007/12/open-ssrs-report-in-a-new-window/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

