serpico622
Programmer
hi,
i am not able to dispaly the data in dataset in crystal report why??
no errors no bugs nothing,
example: Datasource ds;
try
{
myConnection.Open();
adapter.SelectCommand = myCommand;
adapter.Fill(ds,"test" //execute here
myConnection.Close();
ec.SetDataSource(ds);
/*
OracleDataReader myReader;
myReader = myCommand.ExecuteReader();
// Always call Read before accessing data.
ec.SetDataSource(myReader);
myReader.Close();
*/
airreport.ReportSource=ec;
airlist.DataSource = ds; // binding a dataset to grid
airlist.DataTextField ="AIR_AIRPORT_CODE";
airlist.DataValueField ="AIR_AIRPORT_CODE";
airreport.DataBind();
airlist.DataBind();
}
catch(Exception e1)
{
myConnection.Close();
Response.Write("exception ="+e1);
}
as you can see the mebubox is getitng the data and it works fine .,..,but nothing on report(An empty REport)
thanks
i am not able to dispaly the data in dataset in crystal report why??
no errors no bugs nothing,
example: Datasource ds;
try
{
myConnection.Open();
adapter.SelectCommand = myCommand;
adapter.Fill(ds,"test" //execute here
myConnection.Close();
ec.SetDataSource(ds);
/*
OracleDataReader myReader;
myReader = myCommand.ExecuteReader();
// Always call Read before accessing data.
ec.SetDataSource(myReader);
myReader.Close();
*/
airreport.ReportSource=ec;
airlist.DataSource = ds; // binding a dataset to grid
airlist.DataTextField ="AIR_AIRPORT_CODE";
airlist.DataValueField ="AIR_AIRPORT_CODE";
airreport.DataBind();
airlist.DataBind();
}
catch(Exception e1)
{
myConnection.Close();
Response.Write("exception ="+e1);
}
as you can see the mebubox is getitng the data and it works fine .,..,but nothing on report(An empty REport)
thanks