Use the Line element to add horizontal and vertical lines anywhere to the page. The Line element can be added to any report section (i.e. Header, Detail or Footer).
To add a line, select the Line element under the Toolbox, drag and drop it at the desired location on the page. The line can then be resized and repositioned using the mouse, manually changing the values in the properties window or by changing the values in the source.
Change a line to be solid, dotted, dash, etc. by selecting the desired Style from the properties window. Note that the default line style is Solid. Line thickness can also be varied by changing its width value property. The Line element has the following properties.
|Cap||A value indicating the cap style to end the Line with.|
|Color||A value indicating the color of the Line.|
|Style||A value indicating the style of the Line. See note below for customizing Line Style.|
|Width||A value indicating the width of the Line.|
|Id||A value indicating the programmatic identifier of the Line.|
|X1||A value indicating the starting X coordinate of the Line.|
|X2||A value indicating the ending X coordinate of the Line.|
|Y1||A value indicating the starting Y coordinate of the Line.|
|Y2||A value indicating the ending Y coordinate of the Line.|
Customizing Line Style
Use the "Custom" item in the Line's Style propertyCustomizing set Line Style to the exact number of dashes and spaces. If "Custom" is selected from the Line's Style property drop down menu then a user defined value must be entered to specify the exact line series style. The syntax for the Custom Line style is as follows.
- [LineOn1, LineOff1(, LineOn2, LineOff2...)]StartOffset
- LineOn, LineOff - Line style must be specified in on, off pairs of integer delineated with commas and no spaces between numbers or commas. There can be one or more of these pairs
- StartOffset - The line offset is the offset into the specified series (the combination of on, off pairs) in which to start the line drawing.
- [5, 2]0 - This will display a line dash of 5 points followed by 2 points of space and another 5 points of line and continue in this fashion.
- [6, 1, 2, 1]2 - This will first display a line dash of 4 points (6 is the specified length but there is also an offset of 2 into that) followed by a 1 point space and then a 2 point dash, a 1 point space and a 6 point dash, etc. Note in this example that a 2 point offset is the same as a 12 point offset because the series is a total of 10 points.