|
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Algorithms.Topics.Algorithms.OnBeginPrint</title>
<link rel="stylesheet" type="text/css" href="EasiReports.css">
</head>
<body>
<h1>OnBeginPrint Algorithms</h1>
<p>You can only write one of these algorithms in each class.</p>
<p>This algorithm is executed once at the beginning of the print process.</p>
<p>This algorithm has the following signature :</p>
<pre class="Code"> </pre>
<pre class="Code">public void OnBeginPrint( <a href="ms-its:EasiReportsReference.chm::/EasiReports.Algorithms.ReportProperties.html">ReportProperties</a> props, <a href="ms-its:EasiReportsReference.chm::/EasiReports.Algorithms.OnBeginPrintArgs.html">OnBeginPrintArgs</a> args )</pre>
<pre class="Code"> </pre>
<p>The following properties of the <b>ReportProperties</b> parameter can be set
:</p>
<table class="dtTABLE" cellSpacing="0" id="table1">
<tr vAlign="top">
<th width="50%">Property</th>
<th width="50%">Can be set</th>
</tr>
<tr vAlign="top">
<td width="50%">
<a href="ms-its:EasiReportsReference.chm::/EasiReports.Algorithms.ReportProperties.IsLastRecord.html">
IsLastRecord</a></td>
<td width="50%"><b>Yes</b></td>
</tr>
<tr vAlign="top">
<td width="50%">
<a href="ms-its:EasiReportsReference.chm::/EasiReports.Algorithms.ReportProperties.MaxHeaderFooterLevel.html">
MaxHeaderFooterLevel</a></td>
<td width="50%">No</td>
</tr>
<tr vAlign="top">
<td width="50%">
<a href="ms-its:EasiReportsReference.chm::/EasiReports.Algorithms.ReportProperties.Report.html">
Report</a></td>
<td width="50%">No</td>
</tr>
<tr vAlign="top">
<td width="50%">
<a href="ms-its:EasiReportsReference.chm::/EasiReports.Algorithms.ReportProperties.StopPrint.html">
StopPrint</a></td>
<td width="50%"><b>Yes</b></td>
</tr>
</table>
<p>You can also set the <b>Cancel</b> property of the <b>pea</b> property of the <b>
OnBeginPrintArgs</b> parameter to <b>true</b> to cancel the whole print :</p>
<pre class="Code"> </pre>
<pre class="Code">args.pea.Cancel = true;</pre>
<pre class="Code"> </pre>
</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!