Microsoft Report Viewer -

// Using Microsoft.Reporting.NETCore (community) or the official package byte[] RenderReport(string reportPath, DataSet data)

using Microsoft.Reporting.WinForms; private void Form1_Load(object sender, EventArgs e) microsoft report viewer

LocalReport report = new LocalReport(); report.ReportPath = reportPath; report.DataSources.Add(new ReportDataSource("DataSet1", data.Tables[0])); string mimeType, encoding, fileNameExtension; Warning[] warnings; string[] streams; // Using Microsoft