|
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>EasiReporter.Examples.06</title>
<link rel="stylesheet" type="text/css" href="EasiReports.css">
</head>
<body>
<h1 class="FirstOfMany">EasiReporter Example Reports</h1>
<h1><b>06.Customers.Orders.Summary</b></h1>
<p>One of the <a href="EasiReporter.Examples.htm">Example Reports</a> that are
provided with EasiReporter.</p>
<p style="margin-top: 12">Another summary report, this time with Algorithms (
code ).</p>
<div style="border-top-style: solid; border-top-width: 1; padding-top: 1"> </div>
<p>This report shows how to count at different
<a href="EasiReporter.Topics.Levels.htm">Levels</a> ( different Section Pairs
), how to access Variables ( recordset data ) in an Algorithm to produce a
calculated value and how to count at a higher level.</p>
<p>Look at the C# Algorithms, and you will find the dOrderValue
<a href="Algorithms.Topics.Algorithms.Data.htm">Data Algorithm</a> near the
bottom. This shows how to calculate a new value from data in the recordset.
Note also that the three fields that are used would not be available unless
they are added to the ExtraFields list in the
<a href="EasiReporter.Dialogs.Report.htm">Report Properties</a>. The variables
were added using the <a href="EasiReporter.Dialogs.InsertDataVariable.htm">
InsertDataVariable</a> dialog.</p>
<p>The other algorithms : iCountOfOrders, iTotalOrderCount and
iCountOfCustomers, are necessary because the recordset contains data from the
Order Details table. They use the props.iCurrentMaxHeaderLevel property, which
is set to the level of the outermost header that is printed for the current
record.</p>
<p>For example, the iCountOfOrders algorithm counts when the Orders Header
Section ( level 0 ) is printed. It resets the count when the Customers Header
Section is printed. Thus is counts unique orders for each customer.</p>
<p> </p>
<p> </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.
I discovered C# and .NET 1.0 Beta 1 in late 2000 and loved them immediately.
I have been writing software professionally in C# ever since
In real life, I have spent 3 years travelling abroad,
I have held a UK Private Pilots Licence for 20 years,
and I am a PADI Divemaster.
I now live near idyllic Bournemouth in England.
I can work 'virtually' anywhere!