Z
zysunit
Unregistered / Unconfirmed
GUEST, unregistred user!
当RichEdit中的字符串 多于一页时 如何分页?
现在我能做到生成一页 程序如下:
var bmp:Tbitmap;
begin
bmp:=tbitmap.Create;
bmp.Height:=RichEdit1.Height;
bmp.Width:=RichEdit1.Width;
RichEdit1.SelAttributes.Color :=clred;
bitblt( bmp .Canvas.Handle,0,0,bmp.Width,bmp.Height,FrmPublishMessage.Canvas.Handle,RichEdit1.Left,RichEdit1.Top,srccopy);
bmp.SaveToFile('c:/b.bmp');
bmp.Free;
end;
现在我能做到生成一页 程序如下:
var bmp:Tbitmap;
begin
bmp:=tbitmap.Create;
bmp.Height:=RichEdit1.Height;
bmp.Width:=RichEdit1.Width;
RichEdit1.SelAttributes.Color :=clred;
bitblt( bmp .Canvas.Handle,0,0,bmp.Width,bmp.Height,FrmPublishMessage.Canvas.Handle,RichEdit1.Left,RichEdit1.Top,srccopy);
bmp.SaveToFile('c:/b.bmp');
bmp.Free;
end;