Method inside method !
Posted: Sun Nov 18, 2012 8:52 am
Hello
is it possible to use method inside method in stimulsoft?
In my TextBox component in the group footer, i will take the sum of numbers and convert it to Hours:Minutes:seconds, the sum method is built in stimulsoft and i created method to convert this double numbers into Hours:Minutes:Seconds, but how i can use both method in the same step inside the expression of the TextBox component?
Note: as i said i use this TextBox component in the GroupFooterBand
i tried in the expression of the TextBox component as the following but it did not work:
{IntToTime({Sum(ViewEmpSummary.SsmBeginEarly)})}
As i said i created method for IntToTime in the code page inside my report as the following:
please find the report in the attachment.
Thank you
is it possible to use method inside method in stimulsoft?
In my TextBox component in the group footer, i will take the sum of numbers and convert it to Hours:Minutes:seconds, the sum method is built in stimulsoft and i created method to convert this double numbers into Hours:Minutes:Seconds, but how i can use both method in the same step inside the expression of the TextBox component?
Note: as i said i use this TextBox component in the GroupFooterBand
i tried in the expression of the TextBox component as the following but it did not work:
{IntToTime({Sum(ViewEmpSummary.SsmBeginEarly)})}
As i said i created method for IntToTime in the code page inside my report as the following:
Code: Select all
public string IntToTime (double seconds )
{
string fullTime;
TimeSpan ts = TimeSpan.FromSeconds(seconds);
fullTime = ts.Hours.ToString() + ":" + ts.Minutes.ToString() + ":" + ts.Seconds;
return fullTime;
}
please find the report in the attachment.
Thank you