Error in constructor
Posted: Sun Oct 05, 2008 6:30 pm
Hi There
Im getting an error whilst trying to preview the attached report in th edesigner
the code that is throwing the error is
public void Page1_BeforePrint(object sender, System.EventArgs e)
{
If CDec(SalesInvoice.BalanceDueAmt)= 0 Then
Page1.Watermark.Text= "Receipt"
ElseIf CDec(SalesInvoice.BalanceDueAmt) <0 Then
page1.Watermark.Font= New System.Drawing.Font("Arial", 36)
Page1.Watermark.Text= "Credit. Do not send payment!"
Else
Page1.Watermark.Text= "Invoice"
End If;
}
VB2008 v 2008.2.300
Im getting an error whilst trying to preview the attached report in th edesigner
the code that is throwing the error is
public void Page1_BeforePrint(object sender, System.EventArgs e)
{
If CDec(SalesInvoice.BalanceDueAmt)= 0 Then
Page1.Watermark.Text= "Receipt"
ElseIf CDec(SalesInvoice.BalanceDueAmt) <0 Then
page1.Watermark.Font= New System.Drawing.Font("Arial", 36)
Page1.Watermark.Text= "Credit. Do not send payment!"
Else
Page1.Watermark.Text= "Invoice"
End If;
}
VB2008 v 2008.2.300