Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read a text in Bulgare language Pin
Luc Pattyn18-Apr-09 7:59
sitebuilderLuc Pattyn18-Apr-09 7:59 
GeneralRe: Read a text in Bulgare language Pin
abbd18-Apr-09 9:09
abbd18-Apr-09 9:09 
GeneralRe: Read a text in Bulgare language Pin
Rolf Kristensen19-Apr-09 3:32
Rolf Kristensen19-Apr-09 3:32 
Question[Message Deleted] Pin
hkjghkj117-Apr-09 22:06
hkjghkj117-Apr-09 22:06 
AnswerRe: Number of lines in MultiLine TextBox with vertical scrollbar Pin
N a v a n e e t h17-Apr-09 22:21
N a v a n e e t h17-Apr-09 22:21 
AnswerRe: Number of lines in MultiLine TextBox with vertical scrollbar Pin
Xmen Real 18-Apr-09 0:14
professional Xmen Real 18-Apr-09 0:14 
General[Message Deleted] Pin
hkjghkj118-Apr-09 20:09
hkjghkj118-Apr-09 20:09 
GeneralRe: Number of lines in MultiLine TextBox with vertical scrollbar Pin
Xmen Real 18-Apr-09 20:11
professional Xmen Real 18-Apr-09 20:11 
QuestionInheritance and events Pin
Dewald17-Apr-09 21:16
Dewald17-Apr-09 21:16 
AnswerRe: Inheritance and events Pin
DaveyM6917-Apr-09 21:34
professionalDaveyM6917-Apr-09 21:34 
GeneralRe: Inheritance and events Pin
Dewald18-Apr-09 23:03
Dewald18-Apr-09 23:03 
AnswerRe: Inheritance and events Pin
N a v a n e e t h17-Apr-09 21:42
N a v a n e e t h17-Apr-09 21:42 
QuestionDB Connectivity with Smart Device (Windows Mobile) Pin
khosnur17-Apr-09 19:23
khosnur17-Apr-09 19:23 
AnswerRe: DB Connectivity with Smart Device (Windows Mobile) Pin
N a v a n e e t h17-Apr-09 20:53
N a v a n e e t h17-Apr-09 20:53 
QuestionTargetInvocationException was unhandled by user code Pin
Dhruva Hein17-Apr-09 18:52
Dhruva Hein17-Apr-09 18:52 
AnswerRe: TargetInvocationException was unhandled by user code Pin
N a v a n e e t h17-Apr-09 20:52
N a v a n e e t h17-Apr-09 20:52 
GeneralRe: TargetInvocationException was unhandled by user code Pin
Dhruva Hein18-Apr-09 13:57
Dhruva Hein18-Apr-09 13:57 
QuestionApplication failed to initialize Pin
mrithula817-Apr-09 18:10
mrithula817-Apr-09 18:10 
AnswerRe: Application failed to initialize Pin
Henry Minute17-Apr-09 21:56
Henry Minute17-Apr-09 21:56 
QuestionCompiler Error CS0103 Help? Pin
Raymundo Valdez17-Apr-09 16:46
Raymundo Valdez17-Apr-09 16:46 
AnswerRe: Compiler Error CS0103 Help? Pin
N a v a n e e t h17-Apr-09 17:04
N a v a n e e t h17-Apr-09 17:04 
GeneralRe: Compiler Error CS0103 Help? Pin
Raymundo Valdez17-Apr-09 20:15
Raymundo Valdez17-Apr-09 20:15 
QuestionCrystal reports with C#, Displays a error message. Pin
Member 395385617-Apr-09 13:02
Member 395385617-Apr-09 13:02 
Hi ,
I am trying to display a crystal report using the crystal report viewer in vs 2008,and it does not display instead it gives a database login screen.

This is the code which I am using .
==================================================================
CrystalReport1 objRpt;
//Usermaster objRpt;
objRpt = new CrystalReport1();

string connstr = "Persist Security Info=False;userid=btssys; password=xx23;database=bts;server=xxxx";

MySqlConnection mc = new MySqlConnection(connstr);

try
{
mc.Open();
string sql = "select userid,
usergiven,userfamily,status,expiry,created,created_by
from user_master";

MySqlCommand cmd = new MySqlCommand(sql, mc);

MySqlDataAdapter adp = new MySqlDataAdapter(sql, mc);

//new MySqlDataAdapter(
DataSet ds = new DataSet();
int li_rows = adp.Fill(ds, "myds");

if (ds.Tables[0].Rows.Count == 0)
{
MessageBox.Show("No data Found", "CrystalReportWithmysql");
return;
}

// Setting data source of our report object
objRpt.SetDataSource(ds);



// Binding the crystalReportViewer with our report object.
crystalReportViewer1.ReportSource = objRpt;


================================================================================
If I debug I can find that the ds is retrieving the rows. But nothing comes up on the crystal report viewer.It displays a database login screen instead with server name as myds. Is this something to do with Mysql or something wrong with VS 2008 or crystal report coding.


Thanks
AnswerRe: Crystal reports with C#, Displays a error message. Pin
Member 395385618-Apr-09 10:10
Member 395385618-Apr-09 10:10 
QuestionHow to display relational data between more than two tables. Pin
hdv21217-Apr-09 12:27
hdv21217-Apr-09 12:27 

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.