Hello,
I am new to these forums, and quite new in Delphi programming (already one year of experience, but I've been learning everything by myself). I need help in printing contents of a TMemo component. I have NO idea how to do it.
Kirbster
var
RE: TRichEdit;
begin
RE:=TRichEdit.Create(Self);
re.Visible:=False;
Re.Parent:=Self;
Re.PlainText:=True;
Re.Font:=Main.CurrentEditor.Font;
Re.WordWrap:=Main.CurrentEditor.WordWrap;
Re.Lines:=Main.CurrentEditor.Lines;
ppPrint.BeginDoc;
ppPrint.PaintRichText(Rect(Margins.Left,Margins.Top,ppPrint.PaperWidth - Margins.Right, ppPrint.PaperHeight-Margins.Bottom),RE, -1, nil);
ppPrint.EndDoc;
Re.Free;
end;
Users browsing this forum: No registered users and 8 guests