private void showprintone_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());

            Reports.ContractReport report = new Reports.ContractReport();
            Reports.ClothesReport  frm    = new Reports.ClothesReport();
            report.SetDataSource(con.GetOrderDetails(id));
            frm.crystalReportViewer1.ReportSource = report;
            frm.ShowDialog();
        }
Beispiel #2
0
        private void Print_Click(object sender, EventArgs e)
        {
            // newSale.Enabled = true;
            int id = Convert.ToInt32(con.GetLastorderIdForPrint().Rows[0][0].ToString());

            Reports.ContractReport report = new Reports.ContractReport();
            Reports.ClothesReport  frm    = new Reports.ClothesReport();
            report.SetDataSource(con.GetOrderDetails(id));
            frm.crystalReportViewer1.ReportSource = report;
            frm.ShowDialog();
        }