private void DisplayReportSalesMonth() { ReportSales.DataSources.Clear(); var rNames = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("prototype2.rdlcfiles.SalesReport.rdlc"); ReportSales.DataSources.Add(new Syncfusion.Windows.Reports.ReportDataSource("SalesItemTable", GetItemMonth())); ReportSales.DataSources.Add(new Syncfusion.Windows.Reports.ReportDataSource("SalesServiceTable", GetSerMonth())); ReportSales.LoadReport(rNames); ReportSales.ProcessingMode = Syncfusion.Windows.Reports.Viewer.ProcessingMode.Local; ReportSales.RefreshReport(); }
private void btnPrint_Click(object sender, EventArgs e) { try { if (passedSid == 0) { panel3.Show(); lblError.Text = "No suck bill exists. Select valid bill."; } else { ReportSales rpt = new ReportSales(passedSid); rpt.ShowDialog(); } } catch (Exception x) { } }
private void списъкToolStripMenuItem_Click(object sender, EventArgs e) { ReportSales frm = new ReportSales(GetDataTableFromDGV(ItemsGV), totalPrice, totalDiscount); frm.Show(); }