private void btPrint_Click(object sender, EventArgs e) { m_bmpImage = new Bitmap(DataInventory.Width, DataInventory.Height); DataInventory.DrawToBitmap(m_bmpImage, new Rectangle(0, 0, DataInventory.Width, DataInventory.Height)); printPreviewDialog1.ShowDialog(); }