예제 #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            BarCodeDs ds = new BarCodeDs();
            if (itemList.Count > 0)
            {
                foreach (DataGridViewRow  dgvRow in dgvList.Rows)
                {
                    if (dgvRow.Cells["colLabelCount"].Value != null)
                    {
                        int labelCount = 0;
                        labelCount = int.Parse(dgvRow.Cells["colLabelCount"].Value.ToString());

                        for (int i = 0; i < labelCount; i++)
                        {
                            DataRow row = ds.Tables[0].NewRow();
                            row["ItemCode"] = dgvRow.Cells["colCode"].Value.ToString();
                            row["PartNo"] = dgvRow.Cells["colPartNo"].Value.ToString();
                            row["Description"] = dgvRow.Cells["colDescription"].Value.ToString();

                            ds.Tables[0].Rows.Add(row);
                        }

                    }
                }

                frmReportViewer frm = new frmReportViewer();
                frm.LoadBarcodeReport(ds);
                frm.Show();
                frm.WindowState = FormWindowState.Maximized;

            }
        }
예제 #2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     frmReportViewer frm = new frmReportViewer();
     frm.LoadItemReport();
     frm.Show();
     frm.WindowState = FormWindowState.Maximized;
 }
예제 #3
0
 private void InnerSubMenuItemReport_Click(object sender, EventArgs e)
 {
     frmReportViewer frm = new frmReportViewer();
     frm.LoadItemReport();
     frm.Show();
     frm.WindowState = FormWindowState.Maximized;
 }