jeurk
asked on
How to print a trichEdit with quickReport
Hi,
I want to print the containt of a trichtext in a tqrrichEdit.
The only way I found to make it work is the following :
beforeEdit.Lines.SaveToFil e('Before. rtf');
backEdit.Lines.SaveToFile( 'Behind.rt f');
form2.QRbackEdit.Lines.Loa dFromFile( 'Behind.rt f');
form2.QRbeforeEdit.Lines.L oadFromFil e('Before. rtf');
form2.jacket.Print;
The problem is that the text seems to be stretched even with true type
fonts.
I know that I have to link the parentRichEdit property to my trichedit. But if
I do so, the text prints very small, like when you ask a trichedit to print.
At the printpreview the text looks like it should, but I know it's normal :
96 dpi on the screen and 600dpi on the printer.
So, how do I properly print the contain of a trichedit with the help of a
tqrrichedit. What's the right and working method ?
Thanks for your help.
I want to print the containt of a trichtext in a tqrrichEdit.
The only way I found to make it work is the following :
beforeEdit.Lines.SaveToFil
backEdit.Lines.SaveToFile(
form2.QRbackEdit.Lines.Loa
form2.QRbeforeEdit.Lines.L
form2.jacket.Print;
The problem is that the text seems to be stretched even with true type
fonts.
I know that I have to link the parentRichEdit property to my trichedit. But if
I do so, the text prints very small, like when you ask a trichedit to print.
At the printpreview the text looks like it should, but I know it's normal :
96 dpi on the screen and 600dpi on the printer.
So, how do I properly print the contain of a trichedit with the help of a
tqrrichedit. What's the right and working method ?
Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
var
MyStream : TStringStream;
begin
MyStream := TStringStream.Create(Table
QRRichText1.Lines.Clear;
QRRichText1.Lines.LoadFrom
MyStream.Free;
end;