private void CaptureScreen() { Size s = InvoicePanel.Size; memoryImage = new Bitmap(s.Width, s.Height); InvoicePanel.DrawToBitmap(memoryImage, InvoicePanel.ClientRectangle); }
public void GetPrintArea() { memoryImage = new Bitmap(InvoicePanel.Width, InvoicePanel.Height); InvoicePanel.DrawToBitmap(memoryImage, new Rectangle(0, 0, InvoicePanel.Width, InvoicePanel.Height)); }