Database Reference
In-Depth Information
Configuring Placeholders
next we include placeholders over the top of each text box value.
1.
Right-click each of the textboxes and configure the placeholders, as shown in
Table 17-3 .
Table 17-3. Placeholder Code for Report Items
Textbox Item
Placeholder
Ex. Sales Report
TextboxReportLabel
Ex. YourName@YourCompany.com
TextboxOwnerLabel
Ex. Monday, January 01, 2012
TextboxCreatedOnLabel
Page Number
TextboxPageNumber
(for an example of how to access the placeholder properties, see figure 17-20 . for an example of how the
Placeholder Properties dialog window appears, see figure 17-21 .)
2.
Verify that the report works as expected by using the Preview tab.
3.
save the changes to the new template and leave it open for use in the next exercise.
At this point, the report template is configured, and the template is complete. we use this template in the
next exercise.
Saving the Report Template
Once a template is created, its RDL file should be placed somewhere easily accessible. Report templates can
be stored either locally or remotely. The remote option involves placing the file in a shared folder on a network
server. The local option places the file in a folder on your computer's hard drive.
Although you might expect otherwise, we do not recommend using Visual Studio's Save As menu option,
because while it will save a copy of your new template to a new location, the template will still be a part of your
current SSRS project, when in reality you want it to become a separate and independent RDL file !
Instead, we recommend copying the file to its new location using Window Explorer. To do so, copy and paste
the file from your original SSRS project to either a local folder or a share on a network server. Now the RDL file is
no longer a part of its original Visual Studio solution and is ready to be used as a template for other solutions.
we refer to this independent RDL as a template, but remember that it is simply a standard RDL file. not a
true template—yet!
Note
Using Network Templates
Saving a template remotely involves creating a network share and placing the template file in the network shared
folder. This method makes it easy for multiple report developers to access the same template from many computers.
 
 
 
Search WWH ::




Custom Search