Database Reference
In-Depth Information
Figure 17-14. Using the Document Outline window to rename report items
Renaming Report Items
Whenever you are working with SSRS reports, it is a good idea to make sure you apply a name to every textbox,
image, and label that you might interact with programmatically. It does not take very long to do, and it is
considered good practice.
You can highlight each and every individual textbox and change the name of the Properties window, but this can
be tedious. A better choice is to use the Visual Studio Document Outline window to change the names (Figure 17-14 ) .
You can get to the Document Outline window using the menu items View Other Windows Document
Outline.
To change the name of an item, highlight each item in the treeview and select Rename in the context menu.
A cursor will appear, and you can start typing in the new name. If you try this yourself, you will see it is quite
cumbersome at first, but with a little practice and some caution, it works pretty well.
Do not press the Delete key while renaming a report item. for example, selecting the text “2” from Textbox2
does not delete just the text; it deletes the entire report item! Backspacing to remove text is oK, as well as highlight-
ing the text and typing TextboxownerLabel in its place. if you make a mistake, the simplest remedy is to attempt to
undo the change using the Ctrl+Z keystroke combination.
Tip
Figure 17-15 shows the new names, which will be helpful later as you perform these changes within the next
exercise.
 
 
 
Search WWH ::




Custom Search