读书人

富文本框截图直接打印,内容截取不到,该

发布时间: 2012-12-27 10:17:09 作者: rapoo

富文本框截图直接打印,内容截取不到
//////////控件截图直接打印
Graphics myGraphics = this.CreateGraphics();
memoryImage = new Bitmap(this.Width, this.Height - (start - this.Location.Y), myGraphics);
Rectangle rect = new Rectangle(newpoint, newsize);
////Rectangle rect = new Rectangle(new Point(0,0), newsize);
this.DrawToBitmap(memoryImage, rect);
e.Graphics.DrawImage(memoryImage, newpoint);

是什么原因啊?谢谢!this就是富文本框
[解决办法]
帮项,关注中,期待答案
[解决办法]
直接生成图片,不用myGraphics

还就检查下截取的位置

读书人网 >C#

热点推荐