Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create templates for SQL Server 2005 Reporting Services reports?

I want to create templates for base new reports on to have common designs. How do you do it?

like image 869
Chris Woodruff Avatar asked Sep 15 '08 17:09

Chris Woodruff


1 Answers

The need to produce reports with a common starting design and format is key to any project involving clients and their reports. I have been working on reports for over 10 years now. This has not been the largest portion of my jobs through the years but it has been a very import one. The key to any report project is not to recreate the mundane aspects of the reports for each but to use templates. The use of templates is not a common task or knowledge for Microsoft's SQL Server Reporting Services. Knowing how to save reports templates so that you and your team can create these shortcuts at the creation of a new report in Visual Studio 2005 will help save time and have all reports use the same layout and design.

Create of a set of reports with the following suggestions:

  • Page size -- 8.5 by 11 (letter) and 8.5 by 14 (legal)
  • Orientation -- portrait and landscape for all paper sizes
  • Header -- Text Box for report name, Text Box for report subtitle, client or brand logo
  • Footer -- page number/total pages, date and time report printed

Take all the rdl files for the reports created from the suggestions and copy the files to the following directory:

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject

When creating a new report in your Visual Studio 2005 report project through Add|New Item

alt text http://www.cloudsocket.com/images/image-thumb14.png

The new report dialog will present the list of items from the directory where the new templates were placed.

alt text http://www.cloudsocket.com/images/image-thumb15.png

Select the report that fits the requirement needed and proceed to develop your reports without needing to create the basics.

like image 99
Chris Woodruff Avatar answered Sep 17 '22 18:09

Chris Woodruff