using var report = new LocalReport(); var dt = new DataTable(); //using var report = new LocalReport(); dt = GetItemList(orderId); var path = $"{ this._webHostEnvironment.WebRootPath}\\Reports\\rptToken.rdlc"; report.ReportPath = path; report.DataSources.Add(new ReportDataSource("dsItem", dt)); var pdf = report.Render("PDF"); return File(pdf, "application/pdf");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)