首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2012-12-27 
富文本框截图直接打印,内容截取不到 //////////控件截图直接打印Graphics myGraphics this.CreateGraphi

富文本框截图直接打印,内容截取不到
 //////////控件截图直接打印
                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

还就检查下截取的位置

热点排行