<?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>Luke Hayler - SQL Server developer &#187; style sheets</title>
	<atom:link href="http://www.lukehayler.com/tag/style-sheets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukehayler.com</link>
	<description>A blog about Integration services, Reporting services, and the things that interest me</description>
	<lastBuildDate>Fri, 06 Aug 2010 10:19:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create Your Own Reporting Services Templates</title>
		<link>http://www.lukehayler.com/2009/08/create-your-own-reporting-services-templates/</link>
		<comments>http://www.lukehayler.com/2009/08/create-your-own-reporting-services-templates/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 15:02:39 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[report design]]></category>
		<category><![CDATA[style sheets]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/?p=136</guid>
		<description><![CDATA[Haven&#8217;t I done this before?

As a Reporting Services Developer you may have found yourself completing the same tasks over and over for each new report that you create. To alleviate this somewhat, you may have just done a quick &#8216;Copy &#38; Paste&#8217; of an existing report, renamed it and then modified all the elements within [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color:#61636a; font-family:Verdana"><strong>Haven&#8217;t I done this before?<br />
</strong></span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">As a Reporting Services Developer you may have found yourself completing the same tasks over and over for each new report that you create. To alleviate this somewhat, you may have just done a quick &#8216;Copy &amp; Paste&#8217; of an existing report, renamed it and then modified all the elements within it. The trouble with doing this is that there are always a number of properties/expressions that may have been used in the copied report that tend to be obscure (such as dynamic sorting on columns in a table) and you end up having to hunt down a number of errors and fix them one by one.<br />
</span></p>
<p><span style="font-family:Verdana; font-size:9pt"><span style="color:#61636a">It is much better/easier/faster/less frustrating (&amp; should probably be labelled under &#8216;Best Practices&#8217;) to create a number of SSRS templates of your own that you can use over and over again in each of your projects. It may be a simple template that includes a header &amp; footer formatted to fit either landscape or portrait page layouts (</span><a href="http://www.lukehayler.com/2009/07/designing-ssrs-reports-that-are-optimized-for-printing/">optimally sized for printing</a><span style="color:#61636a">), with text/backgrounds formatted to the way you want then. It may also be as complex as you like, adding in pre-formatted tables/matrices, charts, etc. I have found creating my own SSRS templates to be incredibly useful and highly recommend it. I have made <a href="http://www.lukehayler.com/wp-content/uploads/2009/08/SSRS.REPORT_LAYOUTS.zip">two basic templates available here</a> (<em>right-click&gt;save as&#8230;</em>). It is a zip file containing two .RDL files, 1 Landscape template, 1 Portrait template. Unzip the file to the directory indicated in the steps below to have access to them through BIDS. Note &#8211; these are for SSRS 2005.<br />
</span></span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">Here&#8217;s how to create your own templates:<br />
1. Open or create a new project and create a new report item.<br />
2. Design the report to your specification, as described above (&amp; see Fig 1. below)<br />
</span></p>
<p><span style="color:#36769c; font-family:Verdana; font-size:9pt"> </span></p>
<div id="attachment_138" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-138" title="Fig 1. Standard Design Template" src="http://www.lukehayler.com/wp-content/uploads/2009/08/templates1-300x120.jpg" alt="Fig 1. Standard Design Template" width="300" height="120" /><p class="wp-caption-text">Fig 1. User Designed Template</p></div>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">3. Save the report<br />
4. Navigate to the folder where the .rdl file (that has just been saved) is stored.<br />
5. Cut/Copy the file to the following location (giving the file a useful <em>template-friendly </em>name):<br />
</span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:8pt"><strong>C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject\<br />
</strong></span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">This is the default location of the templates folder. If you have installed Reporting Services on a different drive/directory update these references to reflect the different Drive/Directory. Now, to access the report template from any project, go back to BIDS, right-click the &#8216;Reports&#8217; folder (in the Solution Explorer) in your project and choose <strong>Add&gt;New Item</strong><br />
</span></p>
<p><span style="font-family:Verdana; font-size:9pt"><span style="color:#36769c"> </span></span></p>
<div id="attachment_139" class="wp-caption aligncenter" style="width: 287px"><img class="size-full wp-image-139" title="Fig 2. Add New Item Menu" src="http://www.lukehayler.com/wp-content/uploads/2009/08/templates2.jpg" alt="Fig 2. Add New Item Menu" width="277" height="128" /><p class="wp-caption-text">Fig 2. Add New Item Menu</p></div>
<p><span style="color:#61636a"><br />
</span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">and you will see your new templates under the heading &#8216;Visual Studio installed Templates&#8217;.<br />
</span></p>
<p><span style="font-family:Verdana; font-size:9pt"><span style="color:#36769c"> </span></span></p>
<p><span style="color:#61636a"> </span></p>
<div id="attachment_185" class="wp-caption aligncenter" style="width: 487px"><a href="http://www.lukehayler.com/wp-content/uploads/2009/09/templates3.jpg"><img class="size-full wp-image-185 " title="Fig 3. Select the New User Designed Template" src="http://www.lukehayler.com/wp-content/uploads/2009/09/templates3.jpg" alt="Fig 3. Select the New User Designed Template" width="477" height="293" /></a><p class="wp-caption-text">Fig 3. Select the New User Designed Template</p></div>
<p><span style="color:#61636a; font-family:Verdana"><strong>Centralized Style Sheets for your SSRS Reports<br />
</strong></span></p>
<p><span style="font-family:Verdana; font-size:9pt"><span style="color:#61636a">For those of you who would like to take the standardization of Report Design further, there is </span><a href="http://www.sqlservercentral.com/articles/Reporting+Services+(SSRS)/65811/">a great article over at SQL Server Central</a><span style="color:#61636a"> that describes how to set up Style Sheets for Reports. This means that if a change needs to be made to the design (formatting) of an entire suite of reports, then it can be done in one place and propagated across all of your reports. I highly recommend this article.</span></span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">Have you found any other innovative ways of reducing the time it takes to produce reports? </span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt">Let&#8217;s hear from you.</span></p>
<p><span style="color:#61636a; font-family:Verdana; font-size:9pt"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/08/create-your-own-reporting-services-templates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
