-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: BalajiKrishnan
Message 3 in Discussion

Thanks a lot   I HAD CREATED A WEBPROJECT AND ADDED A WEBFORM IN IT   AND I HAVE PLACE 
A BUTTON IN IT...   ON THE BUTTON CLICK EVENT I HAD WRITTEN THIS CODE      
private void Button1_Click(object sender, System.EventArgs e) 
{ 
CrystalReportTst Orpt = new CrystalReportTst(); 
string strConn = "Server=server;Database=MCODEV;uid=sa; pwd=sa";  
SqlConnection Conn = new SqlConnection(strConn); 
string strcmd = "Select * from provider1099"; 
SqlCommand cmdSelect=new SqlCommand(strcmd,Conn); 
// DataTable dt=new DataTable(); //Datatable to be used in the report 
DataSet ds = new DataSet(); 
SqlDataAdapter da=new SqlDataAdapter(); //DataAdapter to fill the datatable 
da.SelectCommand=cmdSelect; 
//Conn.Open(); 
da.Fill(ds,"tblprovider"); //You can fill the datatable just like a dataset 
// Conn.Close(); 
Orpt.SetDataSource(ds); //set the datasource as the DataTable object 
CrystalReportViewer1.ReportSource =Orpt; 
} 
I HAVE ALSO ADDED A CRYSTALREPORT (CrystalReportTst ) INTO THE PROJECT.BLANK REPORT. 
NOW I BUILD THE SOLUTION....NO ERRORS. 
NOW I RIGHT CLICK THE CRYSTAL REPORTS - RIGHT CLICK -DATABASE -ADD/REMOVE 
DATABASE-PROJECT DATA-ADO.NET DATASET -----------I CANNOT FIND THE DATASET IN IT.. 
NOW WHEN I CLICK THE BUTTON IT SHOWS A BLANK REPORT. 
HOW CAN I DO IT... 
IT IS VERY URGENT... 
PLS HELP 
balaji 
  
  
  
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to