Name the Library as ClassicCarsLibrary.rptlibrary.
Report Projects and Libraries
[ 154 ]
3. When you click on Finish, you will get a Dialog letting you know how to
work with the visual designer. Click on OK.
Adding Components to a Library
Now that we have a Library, we need to add a few components to it. With the
reports that we have created throughout the book, we have used a consistent Data
Source??”the Classic Cars Sample Database. This would make a good candidate for a
Library item. In the following example, we will add a Data Source to a Library, and a
few components that we will use throughout our next few reports.
1. Open up the ClassicCarsLibrary.rptlibrary, if it is not already opened.
2. Open up the Outline Pane.
Chapter 7
[ 155 ]
3. Open up the Palette Pane above the Outline pane, so that both panes are
open at the same time.
Report Projects and Libraries
[ 156 ]
4. Right-click on the Data Sources icon under the Outline, and select New Data
Source. Select the Classic Models Inc. Samples Database, and name the
Data Source as dsClassicCars. Click Next|Finish.
So now we have a Data Source in a Library. This was easy to do.
Adding a Visual Element to a Library
So, what about visual elements? In our reports, we will want to add in simple report
headers containing a logo for the Classic Cars Company??”a company title line, and a
report title line.
Pages:
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147