<?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>All Free Tech &#187; report builder</title>
	<atom:link href="http://www.allfreetech.com/tag/report-builder/feed" rel="self" type="application/rss+xml" />
	<link>http://www.allfreetech.com</link>
	<description>For developers</description>
	<lastBuildDate>Tue, 01 Feb 2011 13:45:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Working with the Report Builder in Microsoft SQL Server 2008: Part 2</title>
		<link>http://www.allfreetech.com/database/sql-server/working-with-the-report-builder-in-microsoft-sql-server-2008-part-2-32.html</link>
		<comments>http://www.allfreetech.com/database/sql-server/working-with-the-report-builder-in-microsoft-sql-server-2008-part-2-32.html#comments</comments>
		<pubDate>Sat, 23 Jan 2010 02:44:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[report builder]]></category>

		<guid isPermaLink="false">http://www.allfreetech.com/?p=32</guid>
		<description><![CDATA[In the previous part of the article, we had a look at the Report Builder overview and described the Report Builder 2.0 interface. In this part by Jayaram Krishnaswamy, we will discuss about Enabling and reviewing My Reports, and will see how to Modify a basic report. Enabling and reviewing My Reports As described in [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous part of the article, we had a look at the <a href="http://www.packtpub.com/article/report-builder-in-microsoft-sql-server-2008-part1?utm_source=sl_sqlserver08_abr2_0409&amp;utm_medium=content&amp;utm_campaign=sanjiv" target="_blank">Report Builder overview and described the Report Builder 2.0 interface</a>. In this part by <b>Jayaram Krishnaswamy</b>, we will discuss about Enabling and reviewing My Reports, and will see how to Modify a basic report. <span id="more-32"></span></p>
<h2>Enabling and reviewing My Reports</h2>
<p>As described in Part 1 the My Reports folder needs to be enabled in order to use the folder or display it in the Open Report dialogue. The RC0 version had a documentation bug which has been rectified (<a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=366413" target="_blank">https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=366413</a>)</p>
<h1>Getting ready</h1>
<p>In order to enable the My Reports folder you need to carry out a few tasks. This will require authentication and working with the SQL Server Management Studio. These tasks are listed here:</p>
<p>The <b>Server Properties</b> window is displayed with a navigation list on the left consisting of the following:</p>
<p>In the <b>General</b> page the <i>name, version, edition, authentication mode,</i> and <i>URL</i> of Reporting Service is displayed. Download of an <b>ActiveX Client Print</b> control is enabled by default. In order to work with Report Builder effectively and provide a <b>My Reports</b> folder for each user, you need to place a check mark for the check box <b>Enable a My Reports folder for each user</b>. The <b>My Reports</b> feature has been turned on as shown in the next screenshot.</p>
<p>In the <b>Execution</b> page there is choice for report timeout execution, with the default set such that the report execution expires after 1800 seconds.</p>
<p>In the <b>History</b> page there is choice between keeping an unlimited number of snapshots in the report history (default) or to limit the copies allowing you to specify how many to be kept.</p>
<p>In the <b>Logging</b> page, report execution logging is enabled and the log entries older than 60 days are removed by default. This can be changed if desired.</p>
<p>In the <b>Security</b> page, both Windows integrated security for report data sources and ad hoc report executions are enabled by default.</p>
<p>The <b>Advanced</b> page shows several more items including the ones described thus far as shown in the next figure.</p>
<p>The <b>Advanced</b> page is displayed as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image1.png" /></p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image2.png" /></p>
<p>The description of everything that a user with the assignment <b>My Reports</b> role can do is as follows:</p>
<p><i>May publish reports and linked reports, manage folders, reports, and resources in a users My Reports folder.</i></p>
<p>Report Builder 2.0 is displayed.</p>
<p>The <b>Open Report</b> dialogue appears as shown. When the report Server is offline, the default location is <b>My Documents</b>, like Microsoft products Excel and MS Access.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image3.png" /></p>
<p>The Report server that is active should get displayed here as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image4.png" /></p>
<p>All the folders and files on the server become accessible as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image5.png" /></p>
<p>Verify that a <b>My Reports</b> folder is created for the user (current user).</p>
<ol>
<li>Make sure the Report Server has started.</li>
<li>Make sure you have adequate permissions to access the Servers.</li>
<li>Open the <b>Microsoft SQL Server Management Studio</b> as described previously.</li>
<li>Connect to the Reporting Services after making sure you have started the Reporting Services.</li>
<li>Right-click the <b>Report Server</b> node.
<ul>
<li><b>General</b></li>
<li><b>Execution</b></li>
<li><b>History</b></li>
<li><b>Logging</b></li>
<li><b>Security</b></li>
<li><b>Advanced</b></li>
</ul>
</li>
<li>In the <b>General</b> page enable the <b>My Reports</b> feature by placing a check mark.</li>
<li>Click on the <b>Advanced</b> list item in the left.</li>
<li>Now expand the <b>Security</b> node of <b>Reporting Services</b> and you will see that the <b>My Reports</b> role is present in the list of roles as shown. This is also added to the ReportServer database.</li>
<li>Now bring up Report Builder 2.0 by clicking <b>Start | All Programs | Microsoft SQL Server 2008 Report Builder | Report Builder 2.0</b>.</li>
<li>Click on <b>Office Button | Open</b>.</li>
<li>Choose the <b>Recent sites and Servers</b>.</li>
<li>Highlight the Server URL and click <b>Open</b>.</li>
<li>Open the Report Manager by providing its URL address.</li>
</ol>
<p style="margin-left: 40px; margin-right: 40px;"><em>There could be slight differences in the look of the interface depending on whether you are using the RTM or the final version of SQL Server 2008 Enterprise edition.</em></p>
<hr color="#ff9933" noshade="noshade" size="1" />
<p>&nbsp;</p>
<div class="header">Learning SQL Server 2008 Reporting Services</div>
<div style="line-height: 0.4em;">&nbsp;</div>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="top" width="99"><a href="http://www.packtpub.com/learning-sql-server-2008-reporting-services/book/sl/sqlserver08-abr2/0409?utm_source=sl_sqlserver08_abr2_0409&amp;utm_medium=content&amp;utm_campaign=sanjiv"><img alt="Learning SQL Server 2008 Reporting Services" border="0" class="left" height="123" src="http://images.packtpub.com/images/100x123/1847196187.png" title="Learning SQL Server 2008 Reporting Services" width="99" /></a></td>
<td valign="top">A step-by-step guide to getting the most of Microsoft SQL Server Reporting Services 2008 &nbsp;</p>
<ul>
<li>Everything you need to create and deliver data-rich reports with SQL Server 2008 Reporting Services as quickly as possible</li>
<li>Packed with hands-on-examples to learn and improve your skills</li>
<li>Connect and report from databases, spreadsheets, XML Data, and more</li>
<li>No experience of SQL Server Reporting Services required</li>
</ul>
<p>				<a href="http://www.packtpub.com/learning-sql-server-2008-reporting-services/book/sl/sqlserver08-abr2/0409?utm_source=sl_sqlserver08_abr2_0409&amp;utm_medium=content&amp;utm_campaign=sanjiv">http://www.packtpub.com/learning-sql-server-2008-reporting-services/book</a></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr color="#ff9933" noshade="noshade" size="1" />
<p>
	&nbsp;</p>
<h2>Modifying a basic report</h2>
<p>In this exercise, the report created will be modified to illustrate the formatting, layout, and other capabilities built into the Report Builder.</p>
<h1>Getting ready</h1>
<p>This hands-on will be using a MS Access report that was imported using Visual Studio and hosted on the Report Server. The MS Access report will be modified to use the new Report Items in Report Builder 2.0.</p>
<h1>Follow the steps</h1>
<p>You will be carrying out the following steps:</p>
<ol>
<li>Open Report Builder and open the <b>ByOrders.rdl</b> report.</li>
<li>Review the imported MS Access report.</li>
<li>Modify the properties.</li>
</ol>
<h3>Open Report Builder and open the ByOrders.rdl report</h3>
<p>You will be accessing the ByOrders.rdl file from the Report Builder in order to modify it in the Report Builder. The steps are listed here:</p>
<p>The <b>ByOrders</b> report gets displayed in the Report Builder as shown:</p>
<ol>
<li>Start Report Builder from its shortcut.</li>
<li>Click the <b>Office</b> button and in the drop-down window click on <b>Open</b>. The <b>Open</b> dialogue is displayed.</li>
<li>Click on <b>Recent Sites and Servers</b> in the left navigation area. The Report Servers&#39; URL is displayed.</li>
<li>Highlight the Report Server URL and click on the <b>Open</b> button.</li>
<li>Click on the MS Access folder and click on the <b>Open</b> button.</li>
<li>Highlight the report <b>ByOrders</b> and click on the <b>Open</b> button.</li>
</ol>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image6.png" /></p>
<h3>Review the imported MS Access report</h3>
<p>The dataset for the report is <b>DataSet1</b> on the left and the report body is in the design area. The various report items and their data binding will be examined for one such control, the <b>CompanyName</b>. It will be instructive to study the others as well. In order to review the report we will follow these steps:</p>
<p>The properties of <b>CompanyName</b> are displayed as shown. <b>CompanyName</b> is inside a container textbox inside the Tablix and it is a place holder. You should also notice the large square bracket on the left ranging three rows. This is the grouping symbol.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image7.png" /></p>
<p>This opens the <b>Placeholder&#39;s Properties</b> page as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image8.png" /></p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image9.png" /></p>
<p>You have added the HTML tags <em>&lt;u&gt;</em> and <em>&lt;/u&gt;</em> on either side of the original <b>CompanyName</b> data that came from the dataset. Now it is slightly more than the data and in the design view (CompanyName) it is replaced by this expression. A placeholder is the holding place of an expression. You can make a textbox into a placeholder by designating the textbox to hold an expression. For example there are two place holders for the time <i>Now ()</i> and the <i>expression =&quot;Page&quot; &amp; Globals.PageNumber &amp; &quot; of &quot;&amp; Globals.TotalPages</i>.</p>
<p>The report gets processed and you may need to provide the login for this report. The username is <b>Admin</b> and there is no <b>password</b>.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image10.png" /></p>
<p>The report is displayed in the Report Builder as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image11.png" /></p>
<p>The <b>Address</b> field is highlighted in the report as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image12.png" /></p>
<p>You can see that this represents the detail (the data that comes in each of the rows). It is also a placeholder and its value is that of &quot;Address&quot;. You can apply Rich Text formatting by using HTML tags for textboxes as well as place-holder values.</p>
<p>Note that only certain HTML tags and CSS attributes are supported. For the supported HTML tags refer to <a href="http://msdn.microsoft.com/en-us/library/dd207048.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd207048.aspx</a>. For an example of CSS rendering, refer to <a href="http://hodentek.blogspot.com/2009/01/can-you-use-css-style-attributes-in.html" target="_blank">http://hodentek.blogspot.com/2009/01/can-you-use-css-style-attributes-in.html</a>.</p>
<p>Both vertical and horizontal movements of objects can be very smooth and can be changed in <b>Points</b> as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image13.png" /></p>
<ol>
<li>Highlight <b>CompanyName</b> and right&ndash;click on it.</li>
<li>Click on <b>Placeholder Properties&hellip;</b>.</li>
<li>Change the <b>Markup</b> type to <b>HTML &ndash; Interpret HTML tags as styles</b>.</li>
<li>Click on the <b><i>fx</i></b> symbol (which opens an <b>Expression</b> window) along&nbsp; the <b>Value</b>.</li>
<li>In the <b>Expression</b> window that is displayed, modify the expression as shown in the following screenshot:</li>
<li>Click on the <b>OK</b> button on the <b>Expression</b> window as well as the <b>Placeholder Properties&#39;</b> window.</li>
<li>Click on the <b>Run</b> button in the <b>Home</b> menu.</li>
<li>Click on the <b>View Report</b> button.</li>
<li>Click on the <b>Address</b> field in the report design.</li>
<li>Change Report title <b>ByOrders</b> to <b>Orders</b> by editing the textbox.</li>
<li>Extend the length of the &lt;&lt;Expr&gt;&gt; directly below the report title to accommodate a longer string.</li>
<li>Make the <b>EmployeeID</b> feld left aligned as well as formatted. Set the font weight <b>Bold</b>.</li>
<li>Click on the table that has the <b>Address, City</b>, and so on. Extend it to the right by dragging the table handles so that the <b>Required Date</b> can be fully displayed.</li>
<li>Rearrange the positions of objects and the size of textboxes to fully display the data.</li>
</ol>
<p>Highlighted objects can be expanded and moved using the <i>Ctrl</i> or <i>Shift</i> keys together with the arrow keys.</p>
<p>The modified report design is shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article2-image14.png" /></p>
<p>
	&nbsp;</p>
<h2>Summary</h2>
<p>The Report Builder 2.0 tool is described in full, starting from the top to the bottom of this interface. Creating reports with this tool is described using an existing report and modifying it as well as creating a new report from data. Embedding charts and gauges are also described. Some of the interactive and rich text features are&nbsp; also discussed.</p>
<p>Report Builder 1.0 is briefly mentioned but its utility for reports models created using VS 2008 or BIDS did not warrant an example due to current limitations. It may be possible to use this tool with Report Models created with an earlier version of SQL Server. One of the main features of Report Builder 2.0 is its ability to create Ad Hoc reports. The reader may notice slight differences in the look of the interfaces slightly at variance depending on the version of the SQL Server 2008 and Report Builder 2.0 used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allfreetech.com/database/sql-server/working-with-the-report-builder-in-microsoft-sql-server-2008-part-2-32.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with the Report Builder in Microsoft SQL Server 2008: Part 1</title>
		<link>http://www.allfreetech.com/database/sql-server/working-with-the-report-builder-in-microsoft-sql-server-2008-part-1-30.html</link>
		<comments>http://www.allfreetech.com/database/sql-server/working-with-the-report-builder-in-microsoft-sql-server-2008-part-1-30.html#comments</comments>
		<pubDate>Sat, 23 Jan 2010 02:43:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[report builder]]></category>

		<guid isPermaLink="false">http://www.allfreetech.com/?p=30</guid>
		<description><![CDATA[Report Builder 2.0 is feature-rich reporting tool with the latest Microsoft Office look and feel. In this two part article by Jayaram Krishnaswamy, we will see how the Report Builder 2.0 provides an extremely flexible GUI with user friendly wizards for creating the Tablix data regions, a versatile construct that includes tables, matrix, and charts [...]]]></description>
			<content:encoded><![CDATA[<p>Report Builder 2.0 is feature-rich reporting tool with the latest Microsoft Office look and feel. In this two part article by <strong>Jayaram Krishnaswamy</strong>, we will see how the Report Builder 2.0 provides an extremely flexible GUI with user friendly wizards for creating the Tablix data regions, a versatile construct that includes tables, matrix, and charts and gauges. Report Builder 2.0 supports server resources such as shared Data Sources, works with SQL Server Data Sources and many third party products, and can directly open and edit server hosted reports. Report Builder together with Report Manager provides powerful support for building and managing a bewildering array of report types.<span id="more-30"></span></p>
<p>The Microsoft SQL Server 2008 Reporting Services Report Builder 2.0 tool can be installed from a standalone installer available at this Microsoft site, <a href="http://download.microsoft.com/download/a/f/6/af64f194-8b7e-4118-b040-4c515a7dbc46/ReportBuilder.msi" target="_blank">http://download.microsoft.com/download/a/f/6/af64f194-8b7e-4118-b040-4c515a7dbc46/ReportBuilder.msi</a>. The same file is also available from a collection of download files when you access the Microsoft SQL Server 2008 Feature Pack, October 2008 at <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=228DE03F-3B5A-428A-923F-58A033D316E1&amp;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyId=228DE03F-3B5A-428A-923F-58A033D316E1&amp;displaylang=en</a>.</p>
<h2>Report Builder overview</h2>
<p>In the present version of SQL Server 2008 [Enterprise Evaluation edition] there&nbsp; are two Report Builders available. Report Builder 1.0, which has remained as a program that can be launched from the Report Manager, and the new Report Builder 2.0, which is a stand alone report authoring tool that needs to be independently launched.</p>
<p>Although Report Builder 1.0 can access Report Models built with Visual Studio 2008 and the Report Manager, it cannot be used to create reports using those models. It also does not work with Reports generated by Visual Studio 2008/BIDS/Report Builder 2.0. The errors can be summarized as follows:</p>
<p><i>Specifying credentials in a URL is not supported</i></p>
<p><i>System.IO.StreamReader: The Report element was not found</i></p>
<p><i>MemoryStream length must be non-negative and less than 2^31-1-origin. Parameter name: offset; Remote GDI stream version: ?. Expected version: 11.0.1</i></p>
<ul>
<li>When you try to access the Report Server 2008 from the link provided on the Report Builder 1.0 interface you get the following error message:</li>
<li>When you try to open a report created using VS2008/BIDS/ReportBuilder2.0 using the <b>Open Report&hellip;</b> and <b>Open File&hellip;</b> navigational items in Report Builder 1.0 you get the following error message:</li>
<li>Report Builder 1.0 allows you to access Report Models created with VS2008/BIDS/Report Manager and even allows you create a report in design view but this report cannot be processed on the Report Server. If you try to do so, you get the following error message:</li>
</ul>
<p>In this article the Report Builder 2.0 interface will be described along with the new features that are incorporated into this version. Report Builder 2.0 is admirably suited to address all items in the Report Definition Language of 2008.</p>
<p>One of the important features of Report Builder 2.0 is the empowerment it provides business users to create ad hoc reports using the Report Models built on the databases they use.</p>
<p>In this article you will be learning mostly about the Report Builder 2.0&nbsp; interface details and working with it to create reports or modify them. It may be noted that Report Builder generates 2008 compliant RDL files as described in <a href="http://download.microsoft.com/download/6/5/7/6575f1c8-4607-48d2-941d-c69622e11c32/RDL_spec_08.pdf" target="_blank">http://download.microsoft.com/download/6/5/7/6575f1c8-4607-48d2-941d-c69622e11c32/RDL_spec_08.pdf</a> and therefore, cannot work with reports generated using 2005 technology.</p>
<h2>Report Builder 2.0 user interface description</h2>
<p>Report Builder is a report authoring tool and the basic procedure for authoring a report consists of the following steps:</p>
<ul>
<li>Report planning</li>
<li>Connecting to a source of data</li>
<li>Extracting a dataset from source</li>
<li>Designing the report and data binding</li>
<li>Previewing the report</li>
</ul>
<p>Although deploying the report is not included in the above, Report Builder can deploy the report as well. It is not always necessary to deploy a completed report, as any part of a report definition file can be deployed. This makes modifying a report on the server very flexible.</p>
<p>In the following sections, the various parts of the Report Builder interface will be described starting at the very top and going to the bottom of the interface</p>
<h1>The menu for file operations</h1>
<p>Report Builder 2.0 can be accessed from <b>Start | All Programs | Microsoft SQL Server 2008 Report Builder | Report Builder 2.0</b>.</p>
<p>This brings up the Report Builder Interface 2.0 as shown with the design area containing two icons: <b>Table</b> or <b>Matrix</b> and <b>Chart</b>. Each of these will launch a&nbsp; related wizard which will step you through the various tasks. The Report Builder 2.0 interface is very similar to Office 2007. More than one instance of Report Builder can be launched.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image1.png" /></p>
<p>At the very top of the following screen shown you have the <i>undo</i> and <i>redo</i> controls as well as a <i>save</i> icon.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image2.png" /></p>
<p>When you click on the save icon the <b>Save as Report</b> window gets displayed as shown. Here you provide a name for the report. The default save extension is&nbsp; <i>*.rdl</i> and it will be saved to the report server. It may also be persisted to a folder on your machine.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image3.png" /></p>
<p>Clicking on the <b>Office Button</b> (top left) opens a drop-down window shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image4.png" /></p>
<p>In this window, you can carry out a number of tasks such as creating a new report, opening an existing report, saving a report, and saving a report with a different name.</p>
<p>The <b>Save</b> button saves it to the default location seen earlier and <b>Save as</b> invokes the same window to save the report with a different name as seen earlier displying the report server instance as the <b>Save to</b> location.</p>
<p>The <b>Recent Documents</b> pane shows the more recent reports created with this tool. <b>New</b> allows you to create a new report. When you click on <b>Open</b>, the following <b>Open Report</b> window gets displayed with the default location <i>http://Hodentek2:8080/ReportServer_SANGAM/My Reports</i>. You will also notice the message: This folder is not available because the My Reports feature is not enabled on the computer. Also the <b>Open Reports</b> window allows you look for reports with the extension <i>.rdl</i>.</p>
<p>Therefore, unless the <b>My Reports</b> feature is enabled, this window is unusable. This is supposed to be possible from Report Manager but there are no controls in Report Manager that would do this. An alternative was suggested by one of the MSDN forum moderators (see <a href="http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/6c695160-29e8-4185-be6d-5fe027a6975c/" target="_blank">http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/6c695160-29e8-4185-be6d-5fe027a6975c/</a>). <i>Hands-on exercise</i> (Part 2) will describe how you may enable My Reports. The idea of My Reports is similar to <b>My Documents</b> where each user can keep his reports.</p>
<p>When the <b>Options</b> button (in the previous screenshot) is clicked it opens the window <b>Report Builder Options</b> window with two tabbed pages <b>Settings</b> and <b>Resource</b> shown as follows:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image5.png" /></p>
<p>Here you can view, as well as modify, Report Builder settings. The defaults are more than adequate to work with the examples in this book.</p>
<p>Clicking on the <b>Resources</b> button brings up this interesting window which enables you to interact with Microsoft regarding SSRS activities, concerns, community, and so on. If you are serious about Reporting Services, these are very valuable links. The <b>About</b> button when clicked can provide you with Report Builder version information.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image6.png" /></p>
<h1>The ribbon</h1>
<p>The main menu consists of <b>Home, Insert,</b> and <b>View</b> menu items which are part of the &quot;ribbon&quot;. The ribbon introduced by Microsoft in Office 2007 is actually a container for other toolbar items. The ribbon is the replacement for the classic menus, toolbars, and is supposed to be more efficient and discoverable by the user. In fact you see a lot more on the &quot;ribbon&quot; than in the classic menu.</p>
<h3>Home</h3>
<p>The next figure shows the <b>Home</b> menu with its toolbar arranged from left to right and divided into sections. The <b>Run</b> toolbar item with the title <b>Views</b> when clicked would run the report open in the design view (in fact, even without a report open in the design view, the report can be run. The result would be the current date and time getting displayed in the center of the screen of an untitled report which has just ExecutionTime as the only item in the report).</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image7.png" /></p>
<p>The <b>Font, Paragraph, Border,</b> and <b>Number</b> toolbar sections become enabled if parts of a report need editing. The formatting of textboxes in the report, the formatting of numbers in the report, and the alignment of components in the layout can all be independently managed using these toolbar items.</p>
<h3>Insert</h3>
<p>When you click on the <b>Insert</b> menu item on the &quot;ribbon&quot;, the tabbed page for this item is displayed as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image8.png" /></p>
<p>It has four sections: <b>Data Regions, Report Items, Subreports,</b> and <b>Header &amp; Footer</b>. These are all the normal items that are used either individually or together to make up a report. There can be more than one data region in a report.</p>
<hr color="#ff9933" noshade="noshade" size="1" />
<p>&nbsp;</p>
<div class="header">Learning SQL Server 2008 Reporting Services</div>
<div style="line-height: 0.4em;">&nbsp;</div>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="top" width="99"><a href="http://www.packtpub.com/learning-sql-server-2008-reporting-services/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"><img alt="Learning SQL Server 2008 Reporting Services" border="0" class="left" height="123" src="http://images.packtpub.com/images/100x123/1847196187.png" title="Learning SQL Server 2008 Reporting Services" width="99" /></a></td>
<td valign="top">A step-by-step guide to getting the most of Microsoft SQL Server Reporting Services 2008 &nbsp;</p>
<ul>
<li>Everything you need to create and deliver data-rich reports with SQL Server 2008 Reporting Services as quickly as possible</li>
<li>Packed with hands-on-examples to learn and improve your skills</li>
<li>Connect and report from databases, spreadsheets, XML Data, and more</li>
<li>No experience of SQL Server Reporting Services required</li>
</ul>
<p>				<a href="http://www.packtpub.com/learning-sql-server-2008-reporting-services/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv">http://www.packtpub.com/learning-sql-server-2008-reporting-services/book</a></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr color="#ff9933" noshade="noshade" size="1" />
<h3>Data Regions</h3>
<p>In the Data Regions section you have both the Tablix (<b>Table, Matrix,</b> and <b>List</b>) and the graphic controls that can be bound to data&mdash;the <b>Chart</b> and the <b>Gauge</b>. <b>Gauge</b> is new in SQL Server Reporting Services 2008. Chart and gauge implementations are the off shoot of collaboration with Dundas (<a href="http://www.dundas.com/" target="_blank">http://www.dundas.com/</a>). Report Builder is built in such a way that the dataset must be defined before any of the data regions are added to the report body. For the purpose of describing the various data regions in this section, it is assumed (in order to get the screen shots shown here) that a dataset has been defined and the default wizards on the design surface have been removed.</p>
<h4>Table</h4>
<p>The Table is meant for displaying data retrieved from a database either all data detailed in groups or a combination (some grouped and some detailed) of both. It has a fixed number of columns which can be adjusted at design time. The table length expands to accommodate the rows.</p>
<p>Data can be grouped by a single field or by multiple fields. Expression designer can be used in grouping as well. The grouping is carried out by creating row groups. Static rows can be added for row headings (labels) and totals. Aggregates for groups can be added. Both detailed data as well as grouped data can be hidden initially and the user can interactively reveal the data needed by drill downs.</p>
<p>When you click on <b>Insert | Table | Insert Table</b> and then click on the design surface you can add a table to the design area. The table appears as shown with handles to adjust its dimensions. The table can be dragged to any other location on the design surface (the body of the report) as well.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image9.png" /></p>
<p>After placing the table, which by default has three columns and two rows, when you click on any other part of the design area you will see the table as shown. When you hover over the cell marked <b>Data</b> on the table you will see a little icon. This icon is a minimized version of the dataset fields. The grayed out feature that surrounds the table indicate the position of the rows and columns of the table. It also shows such other features as whether it is a detail, or whether it is a group. In the case of group, within a group the feature would indicate the nesting schematically as well. When you want to increase the size of a column or a row you can drag the double headed arrow that gets displayed when your cursor is placed between two columns or between two cells as shown.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image10.png" /></p>
<p>When you click on the dataset icon in the cell <b>Data</b> you get a drop-down list containing the fields in the dataset as shown. You can choose any of the fields to occupy the cell you clicked and the corresponding header will be added to the table. In this particular dataset there are nine fields and you can choose any of them to occupy the cell.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image11.png" /></p>
<p>When you right-click on a cell, a drop-down menu will be available. It can be used for the following:</p>
<ul>
<li>Work with the highlighted textbox (each cell of the table is a textbox) including to copy, cut, delete, and paste contents.</li>
<li>Work with the properties of the Textbox.</li>
<li>Populate the textbox with an expression using the expression builder. The expression builder gets displayed when <b><i>fx</i> Expression</b> is clicked.</li>
<li>Use <b>Select</b> to select the body or the Tablix.</li>
<li>Insert a new column or a new row. Columns can be added to the right or the left of the clicked cell and rows can be added above or below the clicked cell.</li>
<li>Delete columns and rows.</li>
<li>Add a group. Both row and column groups can be added.</li>
</ul>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image12.png" /></p>
<p>When you click on the properties of the textbox, the <b>Text Box Properties</b> window is displayed. The textbox has several properties which are arranged on the left as a list with each item having its own page as shown. The <b>Help</b> button on any of the pages will take you directly to the definition of the properties and is extremely useful.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image13.png" /></p>
<p>In the <b>General</b> page, you can make changes to the elements in the <b>Name, Value,</b> and <b>Sizing options</b> page as shown. The <b>Value</b> is one which you choose among the column values (from the drop-down) from the dataset. You may also add a text for the <b>ToolTip</b>, which will display this text when the report is generated and this cell is accessed by hovering over it in the report. Alternatively you can set the <b>Value</b> and <b>Tooltip</b> using <b><i>fx</i></b>&mdash;the button that brings up the <b>Expression</b> window.</p>
<p>In the <b>Number</b> page you can set the number and date data type formatting options for the cell that contains a number or a date. This is what you normally would find in most Microsoft products such as Excel and Access.</p>
<p>In the <b>Alignment</b> page you can choose the vertical and horizontal alignments as well as the padding of the textbox content from the edges of the cell.</p>
<p>Similarly the <b>Font</b> and <b>Border</b> properties are the same ones you find in most Microsoft products.</p>
<p>The <b>Fill</b> property lets you add or change background color to the report as well as add a graphic element. The graphic element can be <b>embedded, external,</b> or originate from a <b>database</b> (being one of the fields accessed). Expressions can be developed to set a desired color for the <b>Fill</b>.</p>
<p>The <b>Visibility</b> of the textbox can be any of <b>Show, Hide, Show or Hide based on an expression</b>. In each of these cases the visibility can be toggled when another table cell is clicked (which can be chosen). This page also gives access to the <b>Expression</b> window which is similar to the MS Access expression builder.</p>
<p>The <b>Interactive Sorting</b> page allows you to define interactive sorting options on&nbsp; the textbox.</p>
<h4>Matrix</h4>
<p>Matrix provides a similar functionality (roughly speaking rows against columns) to cross-tab reports in MS Access (<a href="http://aspalliance.com/1041_Creating_a_Crosstab_Report_in_Visual_Studio_2005_Using_Crystal_Reports.all" target="_blank">http://aspalliance.com/1041_Creating_a_Crosstab_Report_in_Visual_Studio_2005_Using_Crystal_Reports.all</a>) and Pivot Table dynamic views (<a href="http://www.aspfree.com/c/a/MS-SQL-Server/On-Accessing-Data-From-An-OLAP-Server-Using-MS-Excel/3/" target="_blank">http://www.aspfree.com/c/a/MS-SQL-Server/On-Accessing-Data-From-An-OLAP-Server-Using-MS-Excel/3/</a>). The matrix should have at least one row group and one column group. The matrix can expand both ways to accommodate the data, horizontally for column groups and vertically for row groups. The matrix cells (intersection of rows and columns) display summary information (aggregates).</p>
<p>When you click on <b>Insert Matrix</b> in the <b>Insert</b> menu and drop it on the design area of Report Builder 2.0, it gets displayed as shown in the following figure:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image14.png" /></p>
<p>Now if you click inside the boundary of the (2&#215;2) empty matrix you will see more features of the matrix as shown in the following screenshot. The basic elements are the <b>ColumnGroup</b> (Column Groups), the <b>RowGroup</b> (Row Groups), and the <b>Data</b>. The group information is also displayed as shown by overlaid lines pointing to them. There needs to be a minimum of one group and one column for the matrix and there could be a hierarchy of column and row groups.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image15.png" /></p>
<p>The row and column group cells have their own properties which can be displayed when you right-click on them as shown in the next screenshot for the row group. When you right-click on the cell marked <b>Rows</b>, the following drop-down menu&nbsp; pops up.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image16.png" /></p>
<p>In addition to the properties that you can set for the textbox in that cell, you have additional submenu items that work with the grouping and totaling. These are part of representing data in a matrix.</p>
<p>Each of the Tablix for the <b>Rows</b> and <b>Columns</b> has the additional submenu items which are shown here for the <b>Rows</b>. Similar ones apply for the <b>Columns</b> as well. These are useful when you want to create nested groups. With the Matrix design interface in SQL Server 2005 this would not have been possible.</p>
<p>Add Group</p>
<ul>
<li>Row Group
<ul>
<li>Parent Group&#8230;</li>
<li>Child Group&#8230;</li>
<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</li>
<li>Adjacent Above</li>
<li>Adjacent Below</li>
</ul>
</li>
</ul>
<p>Row Group</p>
<ul>
<li>Delete Group</li>
<li>Group Properties</li>
</ul>
<p>Add Total</p>
<ul>
<li>Before</li>
<li>After</li>
</ul>
<p>In addition to the above, each of the items <b>Rows</b> and <b>Columns</b> cells has the following items as well. These specify how new columns and rows are inserted with reference to the current cell as shown. The differences are due to the geometrical positions that are allowed for the new columns or rows as shown.</p>
<p>For the &quot;Columns&quot; cell:</p>
<p>Insert Column</p>
<ul>
<li>Inside Group-Left</li>
<li>Inside Group-Right</li>
<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</li>
<li>Outside Group-Left</li>
<li>Outside Group-Right</li>
</ul>
<p>Insert Row</p>
<ul>
<li>Inside Group-Above</li>
<li>Inside Group-Below</li>
<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</li>
<li>Outside Group_Above</li>
</ul>
<p>For the &quot;Rows&quot; cell:</p>
<p>Insert Column</p>
<ul>
<li>Inside Group-Left</li>
<li>Inside Group-Right</li>
<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</li>
<li>Outside Group-Left</li>
</ul>
<p>Insert Row</p>
<ul>
<li>Inside Group-Above</li>
<li>Inside Group-Below</li>
<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</li>
<li>Outside Group_Above</li>
<li>Outside Group_Below</li>
</ul>
<p>Besides using a cell as a starting point, one could also use the rows as a whole or column as a whole to add further structure as shown in the next figure. Of course you need to use the proper submenu option to arrive at a particular matrix structure. Clicking at the indicated points would let you choose the structure you want for your matrix. If you click at the location shown for the Tablix you could choose to the delete the whole matrix. The Tablix graphical arrangement gives you the maximum flexibility in extending the matrix in 2-dimensions.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image17.png" /></p>
<h4>List</h4>
<p>The list data region repeats for each row of data. List element provides a single container for the data which can be used to generate what are called <i>Free Form Reports</i>. In this kind of report there is no rigid structure such as a table for the data. You can also place a list inside another list or even a chart inside a list. You can drag a column from a dataset and drop it into the list. You can work with the list using the properties of the <b>Rectangle</b> it contains as well as its Tablix properties.</p>
<p>As described earlier, the design interface is very flexible and you can leverage all features provided by the Tablix structure like displaying details and adding groups either independent, or nested. The properties pages described earlier allow you to sort and filter grouped data.</p>
<p>When you drop a <b>List</b> on the design surface you will see just a single cell as shown. You can change its dimensions to suit your needs.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image18.png" /></p>
<p>When you click on the List you can access its handles as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image19.png" /></p>
<p>When you add a List, there is one column and one row (just one cell). This can be extended in both directions by choosing the appropriate submenu items. These can be displayed by right-clicking on the handles as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image20.png" /></p>
<p>
	&nbsp;</p>
<hr color="#ff9933" noshade="noshade" size="1" />
<div class="header">Books from Packt</div>
<table border="0" bordercolor="#cc6600" cellpadding="3" id="table42" style="border-collapse: collapse;" width="588">
<tbody>
<tr>
<td valign="top" width="68">
<p align="center"><font face="Verdana" size="1">&nbsp; <a href="http://www.packtpub.com/beginners-guide-for-C-sharp-2008-and-2005-threaded-programming/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="C#<br />
2008 and 2005 Threaded Programming: Beginner's Guide" class="style7" height="62" src="http://images.packtpub.com/images/50x61/1847197108.png" style="border: 1px solid rgb(0, 0, 0);" title="C# 2008 and 2005 Threaded Programming: Beginner's Guide" width="50" /></a><br />
					<span lang="en-us"><span class="style1"> <a href="http://www.packtpub.com/beginners-guide-for-C-sharp-2008-and-2005-threaded-programming/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <font color="#ff0000">C# 2008 and 2005 Threaded Programming: Beginner&#39;s Guide</font></a></span></span></font></p>
</td>
<td valign="top" width="68">
<p align="center"><a href="http://www.packtpub.com/sql-server-integration-services-visual-studio-2005/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="Beginners Guide to SQL Server Integration Services<br />
Using Visual Studio 2005" border="0" height="61" src="http://images.packtpub.com/images/50x61/1847193315.png" style="border: 1px solid rgb(0, 0, 0);" title="Beginners Guide to SQL Server Integration Services Using Visual<br />
Studio 2005" width="49" /></a><br />
					<a href="http://www.packtpub.com/sql-server-integration-services-visual-studio-2005/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <font color="#ff0000" face="Verdana" size="1">Beginners Guide to SQL Server Integration Services Using Visual Studio 2005</font></a></p>
</td>
<td valign="top" width="68">
<p align="center"><font face="Verdana" size="1"><a href="http://www.packtpub.com/implementing-microsoft-dynamics-nav-2009/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="Implementing Microsoft Dynamics NAV 2009" height="61" src="http://images.packtpub.com/images/50x61/1847195822.png" style="border: 1px solid rgb(0, 0, 0);" title="Implementing Microsoft Dynamics NAV 2009" width="49" /></a><font face="Verdana" size="1"><br />
					<span lang="en-us"> <span class="style1"><font color="#ff0000"> <a href="http://www.packtpub.com/implementing-microsoft-dynamics-nav-2009/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <font color="#ff0000">Implementing Microsoft Dynamics NAV 2009</font></a></font></span></span></font></font></p>
</td>
<td valign="top" width="68">
<p align="center"><font face="Verdana" size="1"><a href="http://www.packtpub.com/asp-net-data-presentation-controls/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="ASP.NET Data<br />
Presentation Controls Essentials" border="0" height="61" src="http://images.packtpub.com/images/50x61/184719530X.png" style="border: 1px solid rgb(0, 0, 0);" title="ASP.NET Data Presentation Controls Essentials" width="50" /></a><br />
					</font> <a href="http://www.packtpub.com/asp-net-data-presentation-controls/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <font color="#ff0000" face="Verdana" size="1">ASP.NET Data Presentation Controls Essentials</font></a></p>
</td>
<td valign="top" width="68">
<p align="center"><a href="http://www.packtpub.com/software-testing-with-visual-studio-team-system-2008/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="Software Testing with Visual Studio Team System 2008" class="style7" height="61" src="http://images.packtpub.com/images/50x61/184719558X.png" style="border: 1px solid rgb(0, 0, 0);" title="Software Testing with Visual Studio Team System 2008" width="49" /></a><br />
					<font color="#ff0000" face="Verdana"> <span class="style9" lang="en-us"> <a href="http://www.packtpub.com/software-testing-with-visual-studio-team-system-2008/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <span class="style1"><font color="#ff0000" size="1">Software Testing with Visual Studio Team System 2008</font></span></a></span></font></p>
</td>
<td valign="top" width="68">
<p align="center"><font face="Verdana" size="1"><a href="http://www.packtpub.com/vsto-3-for-office-2007-programming/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="VSTO 3.0 for Office<br />
2007 Programming " class="style7" height="62" src="http://images.packtpub.com/images/50x61/1847197523.png" style="border: 1px solid rgb(0, 0, 0);" title="VSTO 3.0 for Office 2007 Programming " width="50" /></a><br />
					<span lang="en-us"><span class="style8"> <a href="http://www.packtpub.com/vsto-3-for-office-2007-programming/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <span class="style1"><font color="#ff0000">VSTO 3.0 for Office 2007 Programming </font></span></a></span></span></font></p>
</td>
<td valign="top" width="68">
<p align="center"><a href="http://www.packtpub.com/linq-quick-starter/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="LINQ Quickly" class="style7" height="62" src="http://images.packtpub.com/images/50x61/1847192548.png" style="border: 1px solid rgb(0, 0, 0);" title="LINQ Quickly" width="50" /></a><br />
					<font color="#ff0000" face="Verdana"> <span class="style9" lang="en-us"> <a href="http://www.packtpub.com/linq-quick-starter/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <span class="style1"><font color="#ff0000" size="1">LINQ Quickly</font></span></a></span></font></p>
</td>
<td valign="top" width="68">
<p align="center"><a href="http://www.packtpub.com/soa-patterns-with-biztalk-server-2009/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <img alt="SOA Patterns with<br />
BizTalk Server 2009" height="62" src="http://images.packtpub.com/images/50x61/1847195008.png" style="border: 1px solid rgb(0, 0, 0);" title="SOA Patterns with BizTalk Server 2009" width="50" /></a><br />
					<font color="#ff0000" face="Verdana"> <span class="style9" lang="en-us"> <a href="http://www.packtpub.com/soa-patterns-with-biztalk-server-2009/book/sl/sqlserver08-abr1/0309?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv"> <span class="style1"><font color="#ff0000" size="1">SOA Patterns with BizTalk Server 2009</font></span></a></span></font></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr color="#ff9933" noshade="noshade" size="1" />
<h4>Chart</h4>
<p>A picture tells lot more than a bunch of numbers, and charts (graphs) aggregate the whole range of data that is highly informative and aesthetically pleasing. Charts have a myriad of properties, both with regard to how they are linked to data as well as their visual properties that it is hard to justify describing them in an abbreviated fashion.</p>
<p>Charts are basically used while creating a graph from the data to summarize important and relevant information. There are two ways you can work with chart in Report Builder 2.0. The easiest is to use the <b>Chart Wizard</b>. The other way is to start with a chart template and then associate it with a dataset.</p>
<p>There are many chart types such as bar charts, column charts, line charts, pie charts, area charts, polar charts, range charts, scatter charts and so on. The following screenshot schematically shows the various supported chart types. The chart type would depend on the data that it represents. Generally a chart should help visualize the data. A chart has its data region as well, its Tablix properties.</p>
<p>You can insert a chart on the report body by clicking <b>Insert | Chart |Insert Chart</b> and clicking again on the body of the report. This brings up the <b>Select Chart Type</b> window as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image21.png" /></p>
<p>Here you have number of options as shown. For each of these choices you have a number of other options as shown on the right-hand side when you choose the <b>Column</b> type.</p>
<p>Assuming you choose the default (the one highlighted in the above figure) and click on the <b>OK</b> button, the type of chart you chose gets added to the design area of the report as shown. You can increase the size of the chart both ways by dragging the handles.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image22.png" /></p>
<p>When you double-click inside the chart, you see the drop-zones on its three sides as shown. These are the areas into which you can drag-and-drop columns from the Dataset or use the minimized dataset icon that gets displayed when you hover over this area.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image23.png" /></p>
<p>When you right-click on any of these areas, you can access the various ways you can work with the charts as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image24.png" /></p>
<p>The important chart related items are category fields, series fields, and data fields. You can work with all properties of the chart from this drop-down menu and even change the type of chart you want to develop.</p>
<h4>Gauge</h4>
<p>This is new in Reporting Services 2008. Like chart, gauge is also a data region. Gauge has only a single data region unlike a chart. It has the look of any industrial meters (measuring instrument) with a range of values and the indicator showing the present value or some configurable value. They can be used together with both table and matrix elements.</p>
<p>When you add a gauge to a report, it comes up positioned within a gauge panel. The properties of this can be accessed when you click outside the boundary of the gauge. When you want the gauge to display data, you should associate its data property with the dataset. Gauge, like chart also has a myriad of properties which can be accessed from its <b>Properties</b> window.</p>
<p>In <i>Hands-on exercise</i>, (Part 2) you will be adding a radial gauge to display the data and a <b>linear</b> gauge to display an average.</p>
<h3>Report Items</h3>
<p>Textbox, image, line, and rectangle are the items you find in the <b>Report Items</b> section of <b>Insert</b>. You will be using textbox and image both of which may be bound to related as well as unrelated database variables. In the case of textbox, you have an option to use a static text, a field from the built-in fields, or connected to one of the fields from the dataset. A table added to a report has textboxes in its cells, but you can add a textbox outside the table and bind it to an aggregate value related to&nbsp; the dataset.</p>
<p>Similar to the textbox, an image added to the report can be embedded, originate from an external source; or being one of the dataset fields. An image can be added to the current report by right-clicking the <b>Images</b> folder in <b>Report Builder</b> and picking an image from your hard drive which can then be simply embedded in the report using the <b>Image</b> report item. This way you can add a logo to your report.</p>
<p>A line cannot be bound to the dataset. Its purpose is purely to provide support as a graphic separator element. The rectangle is also used to improve the visible appeal. However, it can contain other items, even data regions. You can control the rendering behaviour of items placed inside a rectangle (parent control) for the controls placed inside the rectangle. The rectangle will be an anchor for the items placed within it and move when the rectangle is moved in the report design.</p>
<p>When the line or the rectangle is used inside data regions you may use their <b>RepeatWith</b> property to allow them to be rendered when the report gets displayed.</p>
<h3>Subreports</h3>
<p>A subreport is a child of a main report. The main report is a container for the subreport(s). The <b>Subreport</b> section in the <b>Insert</b> menu item of the &quot;ribbon&quot; allows you to add a subreport. The parent report and the subreport are stored usually in the same folder on the report server. The main report can be designed to pass parameters to the subreport. The parameter then filters the subreport for it to be displayed in a data region of the main report.</p>
<p>Subreports can be separated from main data region of the main report or they can be placed within the data region of the main report. A report can contain more than one subreport.</p>
<p>As described above, the subreport may be placed inside the main report several ways as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image25.PNG" /></p>
<h3>Header and footer</h3>
<p>A report page can contain a header and footer. In Report Builder 2.0 there is page footer by default which contains the built-in parameter <i>ExecutionTime</i>.</p>
<p>Some of the common features of page headers and footers are the following:</p>
<ul>
<li>Headers go at the top of the page and footers go to the bottom and they repeat on each page of the report.</li>
<li>They both can contain static text, images, lines and rectangles, borders, expressions (lookup the properties of these in Report Builder 2.0).The expressions can include field references for reports from the dataset.</li>
<li>You can easily add headers and footers from the <b>Insert</b> menu item in the &quot;ribbon&quot;. You can just, as easily, remove them by right-clicking the item and choose to remove the item.</li>
<li>The most common use of headers and footers is to display page numbers, report titles, and so on. There are number of built-in fields such as <b>Page Number, Execution Time, Report Name, Total Pages</b> and so on, which can be dragged-and-dropped on to headers and footers.</li>
<li>To display variable data from a dataset in headers and footers you place a textbox and set the value for the textbox using an expression. Choose the appropriate field from the dataset. In a similar manner you can display aggregate values from the expression builder. For data from multiple datasets you cannot reference the fields, rather you should reference the objects in the report.</li>
<li>You can suppress these on the first and last pages of a report using the <i>PrintOnFirstPage, PrintOnLastPage</i> properties which can be accessed from their properties.</li>
<li>Report headers and footer are not the same as the page headers and footers.</li>
<li>Reports that you see with a browser are rendered by the HTML renderer, but the report can be delivered in different formats. Each of them has their own renderer and you should optimize the report for the format you want to deliver.</li>
</ul>
<h3>View</h3>
<p>The <b>View</b> menu has very few items as shown:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image26.png" /></p>
<p><b>Report Data</b> and <b>Grouping</b> are checked by default. If you want to review or make changes to the properties of objects you place on the report, you should frst place a checkmark for the <b>Properties</b>. Otherwise you will see only the <b>Properties</b> pop-up window that comes up when you right-click an object to look at its properties.</p>
<p>Place checkmark for the <b>Rulers</b> if you want to design measured placement of objects on the report. The rulers become visible when you move around or adjust object sizes.</p>
<h1>Report Data, the Report Designer, and the properties</h1>
<p>These are the items that you will find just below the &quot;ribbon&quot; assuming you have not disabled <b>Report Data</b> and <b>Properties</b> (these are enabled by default) as shown in the following screenshot. The properties will be that of the object highlighted in the report body.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image27.png" /></p>
<h3>Report Data</h3>
<p>As seen in the previous figure, you can create <b>New</b> report data; <b>Edit</b> an existing report data (the figure above has an existing report data in the <b>C_Main</b>. It also has three main folders. The built-in fields we saw earlier. The parameters will contain parameters associated with the report. The images folder contains images that can be imported into this folder, which you can embed in a report from your hard drive.</p>
<p>The <b>Report Data</b> is an excellent starting point to create a report from scratch without using wizards displayed in default. When you click on the drop-down handle <b>New</b> the following menu will be displayed.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image28.png" /></p>
<p>All you need to do is to go and configure each of the items from top to bottom as follows:</p>
<ul>
<li>The <b>Data Source&hellip;</b> will bring up a window where you establish the connection to the datasource.</li>
<li>After this, you click on <b>Dataset&hellip;</b> to create a query to extract a set from the database which you want to display in your report. When you click on <b>Dataset&hellip;</b> you will display the properties of <b>Dataset</b> which you can use to design a query visually (only for SQL Server databases), an SQL Statement or import a saved SQL query or RDL file.</li>
<li>You can then define parameter(s) by clicking on <b>Parameters&hellip;</b> to create a parameter from its <b>Properties</b> window. You add a parameter if you want to filter your query further to produce a smaller and more manageable set of pertinent information.</li>
<li>Click on <b>Images&hellip;</b> to choose images from your machine if you need to embed them in the report.</li>
</ul>
<p>On the other hand, if you already have these you can edit them or delete them.</p>
<h3>Report Designer pane</h3>
<p>The various parts of this pane are shown in the following screenshot. This has been described earlier. The choices you make in the <b>View</b> pane will show or hide the <b>Groupings</b> at the bottom as well as in the <b>Ruler</b>. When you want to create a report from scratch and do not want to use the wizards, you can delete everything on the report and start from scratch.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image29.png" /></p>
<p>For displaying groups of data, the underlying data must support this structure and it is necessary that there exists hierarchical relationships within the data. An example is shown in the following screenshot from the <i>TestNorthwind</i> database used in the exercises.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image30.png" /></p>
<p>In Report Builder 2.0, groupings show both row groupings as well as column groupings. If you are starting from the wizard, you will be setting up the row groups as well as column groups as seen in the <b>Arrange Fields</b> page of the wizard. The available fields were moved into column groups and row groups. One of the shortcomings of this wizard is that once you move a field from the available to any of the other three, you cannot move it back. However you can only move between the three. If you go <b>back</b> and return, you have the same arrangement. If you <b>Cancel</b>, you need to start the wizard again. Another problem with this wizard step is that you must add a field to the <b>Value</b> field. What if one wants to show only a few columns of data in a table? However, it is well suited for matrix design. The above shortcomings in the earlier SQL Server 2008 RC0 version have been rectified in the latest version of Report Builder 2.0 bundled with the Feature Pack (<a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=371356" target="_blank">https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=371356</a>).</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image31.png" /></p>
<p>The above arrangement would lead to a report&#39;s grouping as shown here:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image32.png" /></p>
<p>Each of the groups shown above has its own properties which can be accessed&nbsp; by right-clicking the group. For example, the row group <b>[ProductName]</b> in the above. You can then review its <b>Group Properties</b> window as shown in the two following screenshots:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image33.png" /></p>
<p>When you click on the drop-down item, <b>Group Properties&hellip;</b>, the <b>Group Properties</b> window shows up.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image34.png" /></p>
<p>Clicking on the <b>Next</b> button in the <b>New Table</b> or <b>Matrix</b> wizard&#39;s <b>Arrange&nbsp; Fields</b> page takes you to the window where you can arrange to show the group aggregates. You can show them in several ways depending on the choice you make as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image35.png" /></p>
<h3>Properties</h3>
<p>This window appears, by default, at the right of the report designer pane. It shows all configurable properties of the objects on the report body. You only need to click on the object. Most of the properties become effective as soon as you complete the property and leave that property or move to the next property in the <b>Properties</b> window. If you add custom assemblies, these are also shown in this window.</p>
<h1>Server status and tools</h1>
<p>At the very bottom of the Report Builder you will get an indication as to the Report Server you are connected to (present case there is only one running) and its status as shown in the following screenshot. You can also change from design to run (preview) by clicking on the respective icons in this figure. You can also enlarge or reduce the size of the report both in design and in preview using the zoom slide.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/sqlserver08-article1-image36.png" /></p>
<p>
	&nbsp;</p>
<h2>Summary</h2>
<p>In this part of the article, we had a look at the Report Builder overview. We described the Report Builder 2.0 interface along with the new features that are incorporated into this version. In the next part, we will discuss about <a href="http://www.packtpub.com/article/report-builder-in-microsoft-sql-server-2008-part2?utm_source=sl_sqlserver08_abr1_0309&amp;utm_medium=content&amp;utm_campaign=sanjiv" target="_blank">Enabling and reviewing My Reports, and will see how to Modify a basic report</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allfreetech.com/database/sql-server/working-with-the-report-builder-in-microsoft-sql-server-2008-part-1-30.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

