Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Project corrupted? Pin
T.EDY29-Jul-07 21:53
T.EDY29-Jul-07 21:53 
GeneralRe: C# Project corrupted? Pin
Vikas K.29-Jul-07 23:29
Vikas K.29-Jul-07 23:29 
GeneralRe: C# Project corrupted? Pin
Developer61130-Jul-07 0:05
Developer61130-Jul-07 0:05 
GeneralRe: C# Project corrupted? [modified] Pin
Martin#30-Jul-07 0:08
Martin#30-Jul-07 0:08 
GeneralRe: C# Project corrupted? Pin
Vikas K.30-Jul-07 19:54
Vikas K.30-Jul-07 19:54 
GeneralRe: C# Project corrupted? Pin
Martin#30-Jul-07 20:02
Martin#30-Jul-07 20:02 
GeneralRe: C# Project corrupted? Pin
Vikas K.30-Jul-07 20:12
Vikas K.30-Jul-07 20:12 
Questionproblem in generating crysatl reports Pin
monuSaini29-Jul-07 21:14
monuSaini29-Jul-07 21:14 
Hello Every body,

I am new with crystal reports. I want to generate report for those employees whose age is more than 50 yrs.

But I am not able to do so .It is showing all the records.

I had added an crystal report in my project.

I link it with the database through wizard only,

On form1 it had inserted an crystal report viewer. on the load event of the form1 I had used the following code but it is use less.

SqlConnection Connection = new SqlConnection("server='server1'; user id='sa'; password='admin'; database='employee'");

SqlCommand myCommand = new SqlCommand("SELECT * from companyEmp where age < '50'");

myCommand.Connection = Connection;
myCommand.CommandType = CommandType.Text;

SqlDataAdapter DA = new SqlDataAdapter();
DA.SelectCommand = myCommand;

DataSet DS = new DataSet();
DA.Fill(DS);

crystalReportViewer1.SetDataSource(DS.Tables[0]);
crystalReportViewer1.ReportSource = objNewReport;


But it is still showing all the record of companyEmp.


Regards,

rahul saini
AnswerRe: problem in generating crysatl reports Pin
Edwin Syarief29-Jul-07 22:18
Edwin Syarief29-Jul-07 22:18 
GeneralRe: problem in generating crysatl reports Pin
monuSaini29-Jul-07 22:58
monuSaini29-Jul-07 22:58 
QuestionRe: problem in generating crysatl reports Pin
T.EDY29-Jul-07 23:28
T.EDY29-Jul-07 23:28 
AnswerRe: problem in generating crysatl reports Pin
monuSaini29-Jul-07 23:33
monuSaini29-Jul-07 23:33 
GeneralRe: problem in generating crysatl reports Pin
T.EDY29-Jul-07 23:42
T.EDY29-Jul-07 23:42 
GeneralRe: problem in generating crysatl reports Pin
Edwin Syarief29-Jul-07 23:47
Edwin Syarief29-Jul-07 23:47 
JokeRe: problem in generating crysatl reports Pin
T.EDY29-Jul-07 23:57
T.EDY29-Jul-07 23:57 
GeneralRe: problem in generating crysatl reports Pin
Edwin Syarief29-Jul-07 23:41
Edwin Syarief29-Jul-07 23:41 
GeneralRe: problem in generating crysatl reports Pin
monuSaini30-Jul-07 0:08
monuSaini30-Jul-07 0:08 
GeneralRe: problem in generating crysatl reports Pin
PhilDanger30-Jul-07 3:42
PhilDanger30-Jul-07 3:42 
GeneralRe: problem in generating crysatl reports Pin
monuSaini30-Jul-07 17:22
monuSaini30-Jul-07 17:22 
AnswerRe: problem in generating crysatl reports Pin
Developer61130-Jul-07 0:24
Developer61130-Jul-07 0:24 
GeneralRe: problem in generating crysatl reports Pin
monuSaini30-Jul-07 1:54
monuSaini30-Jul-07 1:54 
GeneralRe: problem in generating crysatl reports Pin
Developer61130-Jul-07 5:10
Developer61130-Jul-07 5:10 
QuestionHow to detect a Mouse Double Click under Mouse_Down? Pin
Khoramdin29-Jul-07 20:28
Khoramdin29-Jul-07 20:28 
AnswerRe: How to detect a Mouse Double Click under Mouse_Down? Pin
Martin#29-Jul-07 20:41
Martin#29-Jul-07 20:41 
AnswerRe: How to detect a Mouse Double Click under Mouse_Down? Pin
Luc Pattyn29-Jul-07 23:35
sitebuilderLuc Pattyn29-Jul-07 23:35 

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.