Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all
i have a formula filed in crystal report same as below:

Shared Numbervar SumLogout;
Shared Numbervar Row;
Stringvar Minutes;
Stringvar Hours;
Stringvar HoursMinutes;
HoursMinutes:="";
If SumLogout=0 Then HoursMinutes:="00:00";
If (SumLogout<>0 And Row>1) Then Hours:=Totext(SumLogout\(Row-1)\60);
If (SumLogout<>0 And Row>1) Then Minutes:=Totext(SumLogout\(Row-1) Mod 60);
If Len(Hours)=4 Then Hours:="0"+Hours;
If Len(Minutes)=4 Then Minutes:="0"+Minutes;
If SumLogout<>0 Then HoursMinutes:=Left(Hours,Len(Hours)-3)+":"+Left(Minutes,Len(Minutes)-3);
Replace(HoursMinutes,",","");


i want to convert this formula in rdlc
i khnow that we can add a expresion in rdlc and convert this code
but the expresion always get a value like this
=short expresion
and we cant have a block of code same as above to this expresion
how can do this in rdlc report ?
thank for any idea
Posted
Updated 21-Dec-13 1:48am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900