Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
GeneralRe: return value Pin
Henry Minute6-May-09 7:14
Henry Minute6-May-09 7:14 
Questiondefinivelty confused about sqlite as embedded database Pin
highjo6-May-09 5:18
highjo6-May-09 5:18 
GeneralRe: definivelty confused about sqlite as embedded database Pin
highjo6-May-09 6:33
highjo6-May-09 6:33 
QuestionNeed to copy folder from one path to other Pin
honeyashu6-May-09 4:55
honeyashu6-May-09 4:55 
AnswerRe: Need to copy folder from one path to other Pin
musefan6-May-09 6:11
musefan6-May-09 6:11 
GeneralRe: Need to copy folder from one path to other Pin
Member 10339076-May-09 10:23
Member 10339076-May-09 10:23 
Questionmake a new object in an event! Pin
pcsience6-May-09 4:44
pcsience6-May-09 4:44 
QuestionRe: make a new object in an event! Pin
OriginalGriff6-May-09 4:53
mveOriginalGriff6-May-09 4:53 
QuestionRe: make a new object in an event! Pin
pcsience6-May-09 5:37
pcsience6-May-09 5:37 
AnswerRe: make a new object in an event! Pin
musefan6-May-09 5:49
musefan6-May-09 5:49 
QuestionRe: make a new object in an event! Pin
pcsience6-May-09 7:55
pcsience6-May-09 7:55 
AnswerRe: make a new object in an event! Pin
Henry Minute6-May-09 9:06
Henry Minute6-May-09 9:06 
QuestionRe: make a new object in an event! Pin
pcsience6-May-09 11:38
pcsience6-May-09 11:38 
AnswerRe: make a new object in an event! Pin
Henry Minute6-May-09 12:01
Henry Minute6-May-09 12:01 
GeneralRe: make a new object in an event! Pin
pcsience9-May-09 2:29
pcsience9-May-09 2:29 
QuestionCompositeDataBoundControl designer crashes VS2008 Pin
Andre Vianna6-May-09 4:40
Andre Vianna6-May-09 4:40 
Questionproblem in C# Pin
kakarman6-May-09 4:26
kakarman6-May-09 4:26 
AnswerRe: problem in C# Pin
musefan6-May-09 4:29
musefan6-May-09 4:29 
AnswerRe: problem in C# Pin
led mike6-May-09 4:37
led mike6-May-09 4:37 
AnswerRe: problem in C# Pin
Luc Pattyn6-May-09 4:38
sitebuilderLuc Pattyn6-May-09 4:38 
QuestionCrystal report binding Pin
KIDYA6-May-09 3:31
KIDYA6-May-09 3:31 
Hi.....
I have combobox which gives table list.After selecting table from same then crystal report view must show table data.
I got problem with crystal report binding.I am using C#.net and in my code i m using "dataset1 Ds" which retrieve all values but cant show that data into crystalreport viewer.
kindly find my code below......
<pre>
private void cmb_type_SelectedIndexChanged(object sender, EventArgs e)
{


if (Convert.ToInt32(cmb_type.SelectedIndex) == -1 && (Convert.ToString(cmb_type.SelectedValue) == "System.Data.DataRowView"))
{
return;
}
CrystalReport1 objRpt;
objRpt = new CrystalReport1();


String ConnStr = "Data Source=SHREE\\SQLEXPRESS;Initial Catalog=NandKumar;Integrated Security=True";

SqlConnection myConnection = new SqlConnection(ConnStr);

string Query1 = "Select * from " + cmb_type.Text ;

SqlDataAdapter adapter = new SqlDataAdapter(Query1, ConnStr);
DataSet1 Ds = new DataSet1();
adapter.Fill(Ds,"C"); // " + cmb_type.Text + "

if (Ds.Tables[0].Rows.Count == 0)
{
MessageBox.Show("No data Found", "Project Tracker Suite");
return;
}
// Upto this my code run- ok,i got problem from here...



objRpt.SetDataSource(Ds.Tables["C"].DefaultView);
CrystalDecisions.CrystalReports.Engine.TextObject root;
root = (CrystalDecisions.CrystalReports.Engine.TextObject)objRpt.ReportDefinition.ReportObjects["txtHeader"];
root.Text = "Sample Report With Parameter!!";
crystalReportViewer1.Visible = true;
crystalReportViewer1.ReportSource = objRpt;

}
}
QuestionHTK Pin
dileeparuwan6-May-09 3:25
dileeparuwan6-May-09 3:25 
QuestionUsing Cell Phone as a PC Microphone in using in the hand 32feet Pin
Ami Vaknin6-May-09 3:21
Ami Vaknin6-May-09 3:21 
AnswerRe: Using Cell Phone as a PC Microphone in using in the hand 32feet Pin
Henry Minute6-May-09 6:21
Henry Minute6-May-09 6:21 
GeneralRe: Using Cell Phone as a PC Microphone in using in the hand 32feet Pin
Ami Vaknin6-May-09 11:16
Ami Vaknin6-May-09 11:16 

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.