Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
AnswerRe: editor Pin
User 665812-Sep-06 1:13
User 665812-Sep-06 1:13 
QuestionAllowPartiallyTrustedCallers not working. Pin
Brady Kelly12-Sep-06 1:02
Brady Kelly12-Sep-06 1:02 
AnswerRe: AllowPartiallyTrustedCallers not working. Pin
Brady Kelly12-Sep-06 3:17
Brady Kelly12-Sep-06 3:17 
Questionhow Remote programing for data base applicaton Pin
Behrouz Niroomand12-Sep-06 0:58
Behrouz Niroomand12-Sep-06 0:58 
Questionhow to write to a file when there is no exceptions. Pin
zxc8912-Sep-06 0:28
zxc8912-Sep-06 0:28 
AnswerRe: how to write to a file when there is no exceptions. Pin
User 665812-Sep-06 1:20
User 665812-Sep-06 1:20 
QuestionRegular expression to match a string in C# Pin
Suman Singh12-Sep-06 0:08
professionalSuman Singh12-Sep-06 0:08 
AnswerRe: Regular expression to match a string in C# Pin
eggsovereasy12-Sep-06 4:11
eggsovereasy12-Sep-06 4:11 
Questiontab control for web applications Pin
Mohammad Daba'an11-Sep-06 23:47
Mohammad Daba'an11-Sep-06 23:47 
QuestionAnybody can tell me why it is wrong? Pin
steed leung11-Sep-06 23:21
steed leung11-Sep-06 23:21 
Question[Message Deleted] Pin
Nafiseh Salmani11-Sep-06 22:18
Nafiseh Salmani11-Sep-06 22:18 
AnswerRe: Media player Pin
Niiiissssshhhhhuuuuu11-Sep-06 23:39
Niiiissssshhhhhuuuuu11-Sep-06 23:39 
GeneralRe: Media player Pin
Nafiseh Salmani12-Sep-06 22:45
Nafiseh Salmani12-Sep-06 22:45 
AnswerRe: Media player Pin
Hamid_RT12-Sep-06 2:58
Hamid_RT12-Sep-06 2:58 
QuestionCode Error! Pin
Shahzad.Aslam11-Sep-06 21:23
Shahzad.Aslam11-Sep-06 21:23 
Questionhighlight search text from search results as it is in google or alibaba.com. Pin
S.Bhushan11-Sep-06 21:05
S.Bhushan11-Sep-06 21:05 
Questioncustomizing shortcut keys... Pin
Rohit Dev11-Sep-06 20:38
Rohit Dev11-Sep-06 20:38 
AnswerRe: customizing shortcut keys... Pin
Amit Kumar Chikara11-Sep-06 20:53
Amit Kumar Chikara11-Sep-06 20:53 
AnswerRe: customizing shortcut keys... Pin
Stefan Troschuetz12-Sep-06 2:58
Stefan Troschuetz12-Sep-06 2:58 
QuestionHow to convert XML data to DataSet in C#.Net Pin
AR Reddy11-Sep-06 20:15
AR Reddy11-Sep-06 20:15 
AnswerRe: How to convert XML data to DataSet in C#.Net Pin
_AK_11-Sep-06 20:28
_AK_11-Sep-06 20:28 
AnswerRe: How to convert XML data to DataSet in C#.Net Pin
Tamimi - Code11-Sep-06 20:30
Tamimi - Code11-Sep-06 20:30 
AnswerRe: How to convert XML data to DataSet in C#.Net Pin
Hamid_RT11-Sep-06 20:37
Hamid_RT11-Sep-06 20:37 
Questionhow to change the datetime format into numeric format in crystal reports Pin
anushawickramaratne11-Sep-06 20:13
anushawickramaratne11-Sep-06 20:13 
Hi friends,
i need big help.. my programme generates a crystal reports by following view... for a given batch need to calculated the actual running time = ((starttime - endtime) - sum(temporally_stoptime - restarttime))

MY View is as follows.....
<br />
CREATE VIEW titles_view<br />
AS<br />
select A.transID,A.Machine,Qlityno,batchnno,b.BTDes,color,startime,endtime,Cast((datediff(n,startime,endtime)-<br />
(SELECT ISNULL(SUM(DATEDIFF( n , TStoptime , Restarttime )),0)<br />
FROM FINTransTempstops B<br />
WHERE B.tranid = A.transid and B.TStoptime is not null))as integer)  as cf_TimeTook,exp_weight,actual_meters,specspeed,isrefish,next_process<br />
from finbatchinfo A left join FINTransTempstops c on A.transID = c.TranID <br />
left join FINBatchType B on A.BTID = B.BTID<br />
where endtime is not null --and startime >=convert(datetime,'2006-08-21',121) and<br />
--startime <= convert(datetime,'2006-08-31',121)<br />
group by A.transID,A.Machine,Qlityno,batchnno,b.BTDes,color,startime,endtime,exp_weight,actual_meters,specspeed,isrefish,next_process<br />
--order by A.machine<br />
GO<br />

this calculation is done in the view..... i take the actual time in minutes.. and then cast in to integer ....view gives the correct information
but when i generate the report it shows the value in datetime format .... but i need to print the numeric value in the report(even in minute format also fine).. I need to show the actual running time in minutes..
when i check the format of the field in crystal report it is numeric...but at run time it gives the value in datetime format.....Confused | :confused: Confused | :confused:
all the dates in above in Database is datetime datatype....
Pls how can solve this problem.....
Pls help meeee......Cry | :(( Cry | :(( Cry | :((
thanks...

anusha wickramaratne

AnswerRe: how to change the datetime format into numeric format in crystal reports Pin
Amit Kumar Chikara11-Sep-06 20:46
Amit Kumar Chikara11-Sep-06 20:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.