private void linkLabel16_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { //الرصيد_الحالى_لبنك_الدم nw = new الرصيد_الحالى_لبنك_الدم(); //nw.Show(); bloodPackagePrint nw = new bloodPackagePrint(); nw.Show(); }
private void btnPrint_Click(object sender, EventArgs e) { //reportViewer1.Visible = true; //btnPrint.Visible = false; //int height = dataGridView1.Height; //dataGridView1.Height = dataGridView1.RowCount * dataGridView1.RowTemplate.Height * 2; //b = new Bitmap(dataGridView1.Width, dataGridView1.Height); //dataGridView1.DrawToBitmap(b, new Rectangle(0, 0, dataGridView1.Width * 2, dataGridView1.Height * 2)); //dataGridView1.Height = height; //printPreviewDialog1.ShowDialog(); bloodPackagePrint nw = new bloodPackagePrint(); nw.Show(); }