public static bool BindReport<t>(CrystalReportViewer viewer, DataTable dt, List<string> paramNames, List<string> paramValues) where T : class, new() { try { SetParameters(paramNames, paramValues, viewer); T rpt = new T(); rpt.SetDataSource(dt); /*actually no "SetDataSource" method found; but i need that*/ viewer.ReportSource = rpt; } catch (exception ex) { throw ex; } return true; }
where T : class, new()
T
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)