Click here to Skip to main content
15,917,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Roulette Help!!! Pin
ArsNeo2-Oct-05 6:47
ArsNeo2-Oct-05 6:47 
GeneralRe: Roulette Help!!! Pin
Dave Kreskowiak2-Oct-05 7:04
mveDave Kreskowiak2-Oct-05 7:04 
GeneralRe: Roulette Help!!! Pin
ArsNeo3-Oct-05 11:55
ArsNeo3-Oct-05 11:55 
GeneralRe: Roulette Help!!! Pin
Dave Kreskowiak6-Oct-05 11:47
mveDave Kreskowiak6-Oct-05 11:47 
AnswerRe: Roulette Help!!! Pin
Christian Graus2-Oct-05 3:04
protectorChristian Graus2-Oct-05 3:04 
QuestionEncapsulation Pin
Tran Ngoc Minh2-Oct-05 0:23
Tran Ngoc Minh2-Oct-05 0:23 
AnswerRe: Encapsulation Pin
Christian Graus2-Oct-05 3:02
protectorChristian Graus2-Oct-05 3:02 
QuestionCoding Problem Pin
| Muhammad Waqas Butt |1-Oct-05 23:45
professional| Muhammad Waqas Butt |1-Oct-05 23:45 
Code Start
//Crystal Report Object
CrystalReport2 cp = new CrystalReport2();
CReport cp1 = new CReport();
//Form Load Event
private void Form2_Load(object sender, System.EventArgs e)
{
crystalReportViewer1.ReportSource = cp;
}
//Link Label Click Event
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
try
{

string empid = textBox1.Text.Trim();// H-B39728F employee id
SqlConnection con = new SqlConnection("server=SK-WAQAS;uid=sa;pwd=Butt;database=pubs");
SqlDataAdapter daemp = new SqlDataAdapter("Select * From employee where emp_id= '" + empid + "'", con);
DataSet ds = new DataSet();
daemp.Fill(ds,"employee");
cp.SetDataSource(ds);
con.Close();
}
catch(Exception ce)
{
MessageBox.Show(ce.Message);
}
}
// End Code

When i run this code no record show in Crystal Report. Please tell me where is do mistake. I want to show record in crystal report on the base of emp_id , i use pubs database on Sql server 2000.

Thanks in advance.

|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
QuestionRoulette Urgent Help!! Pin
ArsNeo1-Oct-05 22:52
ArsNeo1-Oct-05 22:52 
AnswerRe: Roulette Urgent Help!! Pin
mav.northwind1-Oct-05 23:56
mav.northwind1-Oct-05 23:56 
GeneralRe: Roulette Urgent Help!! Pin
leppie2-Oct-05 3:15
leppie2-Oct-05 3:15 
Questiondelegate in remoting Pin
Web cam1-Oct-05 22:44
Web cam1-Oct-05 22:44 
QuestionTree Creation Code Pin
Baatezu1-Oct-05 20:56
Baatezu1-Oct-05 20:56 
QuestionEmbed a web link inside a messageBox() Pin
raysot7771-Oct-05 18:30
raysot7771-Oct-05 18:30 
AnswerRe: Embed a web link inside a messageBox() Pin
David Stone1-Oct-05 19:37
sitebuilderDavid Stone1-Oct-05 19:37 
AnswerRe: Embed a web link inside a messageBox() Pin
Mahesh Kumar V K2-Oct-05 21:51
Mahesh Kumar V K2-Oct-05 21:51 
QuestionHow encrypt a serialized file? Pin
Sasuko1-Oct-05 13:38
Sasuko1-Oct-05 13:38 
AnswerRe: How encrypt a serialized file? Pin
Robert Rohde1-Oct-05 21:17
Robert Rohde1-Oct-05 21:17 
GeneralRe: How encrypt a serialized file? Pin
Sasuko1-Oct-05 23:37
Sasuko1-Oct-05 23:37 
GeneralRe: How encrypt a serialized file? Pin
Johnny ²2-Oct-05 12:34
Johnny ²2-Oct-05 12:34 
QuestionI'M SO CONFUSED??? Pin
Member 23224411-Oct-05 11:48
Member 23224411-Oct-05 11:48 
AnswerRe: I'M SO CONFUSED??? Pin
Christian Graus1-Oct-05 19:42
protectorChristian Graus1-Oct-05 19:42 
QuestionWant to cycle through a pen Array Pin
Anonymous1-Oct-05 9:16
Anonymous1-Oct-05 9:16 
AnswerRe: Want to cycle through a pen Array Pin
Robert Rohde1-Oct-05 10:20
Robert Rohde1-Oct-05 10:20 
GeneralRe: Want to cycle through a pen Array Pin
Anonymous1-Oct-05 10:30
Anonymous1-Oct-05 10:30 

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.