winform打印form窗体的问题
打印一个带滚轮的form窗体里面的内容,只能打印一部分(滚轮滚到的部分),请问怎么打印form窗体的全部
打印的代码如下:
//打印内容 为 整个Form
Image myFormImage;
myFormImage = new Bitmap(this.Width, this.Height);
Graphics g = Graphics.FromImage(myFormImage);
g.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, this.Size);
e.Graphics.DrawImage(myFormImage, 0, 0);