in our project we r using .rdlc file for reporting purpose.
now for one report, there is no dataset as .xsd file.(this is done by my senior who left.)
and they written code for that and manually create dataset ,below is the code
private static void ReportDSR(ReportViewer RV, string fromDt,string toDt, string empId)
{
Lib.DB.
DataService DBSrv = new CatNetLib.DB.DataService(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ConnectionString"].ToString());DataSet RepDS = DBSrv.GetDataSet("Rep_GetDSCDataByEmpDateCity", // this is the name of stored procedure
DBSrv.BP(
"FromDT", Lib.CLib.ConvDtUni(fromDt)), // and this is the parameter passed to itDBSrv.BP("ToDT", Lib.CLib.ConvDtUni(toDt)),
DBSrv.BP(
"EmpID", empId));RV.Height = Unit.Pixel(475);
RV.LocalReport.DataSources.Clear();
RepDS.Tables[0].TableName = "DataSetAHB_DataTableAHB";
RV.LocalReport.DataSources.Add(
new ReportDataSource(RepDS.Tables[0].TableName, RepDS.Tables[0]));
ReportParameter[] RP = new ReportParameter[2];RP[0] = new ReportParameter("RP_FromDate", Lib.CLib.ConvDtUni(fromDt).ToShortDateString());RP[1] = new ReportParameter("RP_ToDate", Lib.CLib.ConvDtUni(toDt).ToShortDateString());
RV.LocalReport.SetParameters(RP);
}
now when in .rdlc file i click on "Report" menu and click on "report data sorce" , then that dataset is there in report dataset but i can not found that dataset in list (in dropdownlist-to add dataset in report).
for one changes i add one field to stored procedure, now i want to display that field in report that's why i want to rebind that dataset but i could not find way
because there is no .xsd file or dataadapter so i can do that, now how can i solve this problem.
plz help me
thanks.