Search this blog

Friday, June 18, 2010

SSRS: Some of the Reporting Services Best Practices - TIPS

Report Property options:


SnapToGrid - For finer control of object sizes, set the SnapToGrid property to False. Once done, you can resize rows, columns, textboxes, etc. to more exact dimensions.

InteractiveSize – To achieve one long scrollable web page, change height property (expanc InteractiveSize) to 0.

Note: With reports that are very long, this can adversely affect report rendering times. Experiment, use judgement, and obtain feedback from users. Educate your users as to the pros and cons of this.

PageSize – The default is 8.5in, 11in. This is a standard portrait letter size page size. For landscape printing, swap the width and height (to 11in, 8.5in). Coordinate these changes with the InteractiveSize. (i.e. If you want to print landscape, but see one long scrollable page in the web browser before printing, set the InteractiveSize to a width of 11in, and a height of 0.)

Description – With Reporting Services (RS) in Native mode (not Sharepoint Integration mode), text you write in this property is displayed in the Report Manager and the WSS2 Reporting Services report viewer web part. For RS in Sharepoint Integration mode the entry has no affect. (For Sharepoint Integrated installations, you can add a field to the reporting document library and put the description there.)


Table properties:


DataSetName – Got have one, even if you are doing something creative like displaying some sort of header table. Almost every report I create has a dataset called 'header'. I use this with a table to display the report logo graphic and some identifying fields (i.e. report runtime, username, report title, etc). This dataset is just a placeholder without any real content. Sometimes I use select statements like "Select getdate()" or "Select 1".

NoRows – Depending on data selection criteria and/or parameters chosen by users, your report may yield no results (no rows). (Or your backend server might be down…yikes!) This option allows you to display a custom message to users in the event there is no data to display. (i.e. "The parameters you chose contains no data…please change your parameter choices and try rerunning the report".)

FixedHeader – Set to "True", this is the same as the "Header should remain visible while scrolling" checkbox in the Table Properties pop up window. It's really a slick feature.


Textbox properties within a table:


BackgroundColor – Background color of the textbox

BorderStyle – I prefer "Solid" most of the time

Color – Means font color

Format – Used for various number, percentage, date, text formatting. For Dates without time use 'd'. For integers, use 'N0'. For fixed decimals use N and then a number. 'N4' is a number with 4 decimals. Use 'P1' for a percentage with 1 decimal place. Check BOL for more formatting codes.

Visibility – Another favorite, but deserves it's own tip. Another day…

CanGrow – 'True' most of the time, but I like to use 'False' if I don't want lines to wrap. In that event, I add the field to the Tooltip in the properties window of the textbox.
In the Properties section:

RepeatOnNewPage – Does what it implies.

Visibity – Use for drill downs.

No comments:

Post a Comment