In report class, I make some calculations. like:
my variable is declared like:
Protected runningPageValue As Double
as a result when I refresh report, export report to pdf, print report etc.. all report events run again (naturally) but my variable never sets to zero. I tried all disposed events but could not succeeded.
I need to understand if report ends, then set
how a report component does not have completed event ? how should I use variables here ? please help. everytime report prints, refreshes or esports, number are groving, bigger and bigger.
my variable is declared like:
Protected runningPageValue As Double
Private Sub pageFooter_ItemDataBound(sender As Object, e As EventArgs) Handles pageFooter.ItemDataBound
Dim processingPageFooter = TryCast(sender, Telerik.Reporting.Processing.PageSection)
Dim processingPageExecTextBox = TryCast(processingPageFooter.ChildElements.Find("txtSayfaToplami", True)(0), Telerik.Reporting.Processing.TextBox)
runningPageValue += Convert.ToDouble(processingPageExecTextBox.Value)
Dim processingRunningPageExecTextBox = TryCast(processingPageFooter.ChildElements.Find("TextBox3", True)(0), Telerik.Reporting.Processing.TextBox)
processingRunningPageExecTextBox.Value = runningPageValue
End Sub
as a result when I refresh report, export report to pdf, print report etc.. all report events run again (naturally) but my variable never sets to zero. I tried all disposed events but could not succeeded.
I need to understand if report ends, then set
runningPageValue
=0 how a report component does not have completed event ? how should I use variables here ? please help. everytime report prints, refreshes or esports, number are groving, bigger and bigger.