public void GetCompanyInfo(string ConnectionString,List<ReportParameter> paramList) { try { DataTable dtCompanyInfo = obj.GetCompanyInfo(); paramList.Add(new ReportParameter("Company_Name",dtCompanyInfo.Rows[0]"CompanyName"].ToString())); .......
List<ReportParameter> paramList = new List<ReportParameter>(); paramList.Add(new ReportParameter("RFE_ID",ddlRFENo.SelectedValue)); paramList.Add(new ReportParameter("Language",Session["lang"].ToString())); objUIFunctions.GetCompanyInfo(Session["ConnectionString"].ToString(),paramList); .....
after the add statement executed the exception is like this "Attempted to access an element as a type incompatible with the array."
paramList.Add(new ReportParameter("Company_Name",dtCompanyInfo.Rows[0]"CompanyName"].ToString()));
DataRow row = dtCompanyInfo.Rows[0]; paramList.Add(new ReportParameter("Company_Name",row["CompanyName"].ToString()));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)