{"id":462,"date":"2007-11-30T18:32:08","date_gmt":"2007-11-30T18:32:08","guid":{"rendered":"\/blogs\/stacia\/post\/SQL-Server-2008-The-New-Report-Designer-and-Tablix.aspx"},"modified":"2013-01-03T15:01:22","modified_gmt":"2013-01-03T23:01:22","slug":"sql-server-2008-the-new-report-designer-and-tablix","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/stacia\/sql-server-2008-the-new-report-designer-and-tablix\/","title":{"rendered":"SQL Server 2008: The New Report Designer and Tablix"},"content":{"rendered":"<p><DIV class=ExternalClass453B1C522A514B6A9C5FDBD962A1D876><br \/>\n<DIV>I&#8217;ve had some time to experiment with the new report designer in the November CTP and continue to believe this will be a reasonable alternative to the Visual Studio interface for business users who participate in the report development process, as I mentioned in my post <a class=\"TitleLinkStyle\" href=\"https:\/\/www.sqlskills.com\/blogs\/stacia\/looking-forward-to-report-designer-features-in-katmais-reporting-services\/\" rel=\"bookmark\">Looking Forward to Report Designer Features in Katmai&#8217;s Reporting Services<\/a>. I think hard-core report developers will be happy about some changes and not happy about others which I&#8217;ll explain shortly. In the November CTP, the new report designer features (as well as the Tablix report item)&nbsp;are available only in a separate client tool. Today I&#8217;ll comment on my general experiences without getting into a deep dive on everything there is to know about the report designer and Tablix. For that sort of detailed information, check out Books Online <A href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb630399(SQL.100).aspx#ReportDesignerRibbon\">here <\/A>for the report designer and <A href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb934258(SQL.100).aspx\">here <\/A>for Tablix.<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>The first thing that tends to throw people is the absence of a Tablix control on the Insert menu. <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV><IMG src=\"https:\/\/www.sqlskills.com\/blogs\/stacia\/content\/binary\/tablix_1a.jpg\" border=0><\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>You actually get it when you add insert either a Table or a Matrix into your report. There&#8217;s no such thing as a table or matrix element anymore. They have both been replaced by the tablix element which is a hybrid of the two. By choosing table or matrix, you define your starting layout for the tablix but you can change your mind as you go. I like this feature a lot because one of my clients inevitably wants a report that started its life as a table to turn into a matrix. <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV><br \/>\n<DIV>Here&#8217;s a screenshot of a report I was working on:<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV><IMG src=\"https:\/\/www.sqlskills.com\/blogs\/stacia\/content\/binary\/tablix_1.jpg\" border=0><\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>The next thing I really like is the ability to put captions into the column headers for rows in my matrix. In the example above, the captions I added are Products and Total. My client who likes to see data in a matrix more often than not also likes column captions &#8211; so I am constantly fussing with rectangles and textboxes in the matrix to get it right. (It&#8217;s not hard the first time, and it&#8217;s not hard to add new columns &#8220;headers&#8221;, but it&#8217;s a pain to take them away I have found. Thank goodness SQL Server 2008 Reporting Services offers a new and better solution!)<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Another nice feature is the ability to have different sets of static columns. Traditionally (i.e. SQL Server 2000 and SQL Server 2005), you can present columns of numeric data as a single static group underneath the group(s) defined on columns. Here you can see I&#8217;ve created something independently of the dynamic columns. The Avg Sale column is to the right of the CalendarYear group. You can tell it&#8217;s outside of the group because the bracket in the column handles includes only CalendarYear. Compare this with the brackets on rows &#8211; one group is indicated for EnglishProductSubcategoryName and a second group including the first group is indicated for EnglishProductCategoryName. <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Notice also you don&#8217;t see standard expressions in the textboxes. Instead there are expression placeholders, like &lt;&lt;Expr&gt;&gt;. I&#8217;m not sure I&#8217;m wild about this, but it may be less intimidating to business users. For hard-core types, you can open the Properties pane and see the expression you&#8217;re accustomed to seeing in the Value property box. The Properties pane isn&#8217;t visible by default so timid business users don&#8217;t need to be frightened by its presence unnecessarily. To set properties, they can use Office-like dialog boxes. Now I found that to be a relatively tedious process (by my standards) to set something simple like a currency format with 0 decimals as compared to a simple C0 in the Properties pane, but that&#8217;s the hard-core developer type in me coming out. <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Speaking of panes, notice the Data pane on the left. It contains your data source and dataset information. To edit, you just right-click the applicable item. The Built-in Fields folder contains all the global variables like ReportName, PageNumber, etc., making it much easier to enhance your report with these items.<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Another huge improvement is the addition of the Row Groups and&nbsp; Column Groups panes. Instead of having to navigate through the dialog boxes to get to your group properties &#8211; or even to see the hierarchical arrangement of them when using multiple groups &#8211; all is available right next to the report design surface. Just right-click on a group and click Edit to access its properties. To create a group, by the way, you just drag a field from the Data pane into the Row Group or Column Group and position it where you like. That&#8217;s about as easy as it gets!<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Other cool features &#8211; when you enable the ruler, you get more than markings on the vertical and horizontal edges. The position of your cursor becomes a crosshair that travels along those edges so you can get incredible precision on the report design surface. And if you&#8217;re having difficulty seeing the details, the slider in the bottom right corner lets you zoom in as much as you like. I can&#8217;t tell you how many times I wished I could do this in earlier versions. <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>The report designer has the same paradigm as the standard BIDS designer &#8211; design view versus preview. Here&#8217;s a section of the report in preview mode:<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV><IMG src=\"https:\/\/www.sqlskills.com\/blogs\/stacia\/content\/binary\/tablix_2.jpg\" border=0><\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Nothing unfamiliar here. However, I did notice that the ReportName global variable didn&#8217;t show up here &#8211; a little CTP bug &#8211; although the ExecutionTime global variable did appear correctly.&nbsp;ReportName did show up when I deployed the report to the server. <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>So now that you see the final report, you can see more clearly that this is a hybrid of a table plus a matrix&#8230; table+(matr)ix&#8230;tablix! How so? In a standard matrix in previous versions, the row groups would appear in separate columns. Here they appear in a single column &#8211; which I can easily do with grouping in a table. I have standard matrix style with dynamic columns but a new capability with the non-grouped column for Avg Sale at the end. Of course, you can nest a tablix inside of a tablix, which can make for some very interesting possibilities, I&#8217;m sure! <\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>That&#8217;s it for today. More to come on Tablix in future blog posts. &#8211;Stacia<\/DIV><\/DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had some time to experiment with the new report designer in the November CTP and continue to believe this will be a reasonable alternative to the Visual Studio interface for business users who participate in the report development process, as I mentioned in my post Looking Forward to Report Designer Features in Katmai&#8217;s Reporting [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/stacia\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}