private void buttonPrint_Click(object sender, EventArgs e) { ReportDocument myDataReport = new ReportDocument(); myDataReport.Load(@"C:\Users\bemrdo\Desktop\KasirHotel-master\KasirHotel\KasirHotel\report.rpt"); myDataReport.SetParameterValue("Awal", dateTimeStart.Value.ToString()); myDataReport.SetParameterValue("Akhir", dateTimeStart.Value.ToString()); PrintReport frm2 = new PrintReport(); frm2.Show(); }
private void button1_Click(object sender, EventArgs e) { PrintReport frm2 = new PrintReport(); frm2.ShowDialog(); }