2,760
edits
No edit summary |
No edit summary |
||
Line 100:
===Calculate Total Overdue Amount after records in detail table is updated===
*Add a local variable '''myOverdueMsg'''
<syntaxhighlight lang="csharp">
private string myOverdueMsg = null;
</syntaxhighlight>
*Insert script to '''xrLabelOverdueTitle_BeforePrint''' event
<syntaxhighlight lang="csharp">
private void xrLabelOverdueTitle_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
object oAccNo = GetCurrentColumnValue("AccNo");
if (oAccNo == null)
{
//Temporary store the original text of this label▼
return;
▲ string orgText = (sender as XRLabel).Text;
}
if (myOverdueMsg == null)
{
myOverdueMsg = (sender as XRLabel).Text;
}
//Calculate the current debtor total overdue amount
Line 116 ⟶ 127:
//Assign 'total amount due' to this label, while format the decimal digit with currency formatting
(sender as XRLabel).Text = string.Format(
}
</syntaxhighlight>
|