|
<html>
<head>
<title>ASP.NET Reports Starter Kit Documentation</title>
<link href="style.css" type="text/css" rel="stylesheet">
</head>
<body class="NormalIndent">
<h1>
Text Report
</h1>
<p>
<b>Description:</b> The text report displays a list of
Employees, their address information, and their personal history notes.
</p>
<p>
<strong>Overview:</strong> The text report
demonstrates using the Repeater control for listing out repetitive data,
such as textual data.
</p>
<p>
<img src="./images/1x1.gif" width="25"> <img src="./images/textshot.gif">
<br>
</p>
<p>
<strong>Implementation Notes: </strong>
</p>
<p>
The Repeater's data source is a TextReportCollection returned from the
GetEmployees function. The Repeater then uses the collection
values to render the appropriate information for the report. As
with the DataList and DataGrid, the repeater control has a Header Template, a
Footer Template, and an Item Template.
</p>
<pre>
<asp:repeater id="EmployeesList" runat="server">
<pre> <headertemplate></headertemplate></pre><pre> <footertemplate></footertemplate></pre><pre><pre> <itemtemplate></itemtemplate></pre>
</pre>
</pre>
<p>In addition, this control also has an Alternating Item Template to distinguish one row from the next,
and a Separator Template to define data or a style, such as a separating line
which will appear in between each data item. An example of how this can
be used is in the picture below (not shown in live sample):</p>
<pre>
<pre> <font color="blue"><alternatingitemtemplate></font><font color="blue"></alternatingitemtemplate></font>
<font color="blue"><separatortemplate></font><font color="blue"></separatortemplate></font> </pre>
</pre>
<p><img src="./images/1x1.gif" width="25"> <img src="../images/textalternate.gif"></p>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.