Link to home
Start Free TrialLog in
Avatar of loucks
loucks

asked on

Delphi Programming question

I am writing a form letter.  The client wants the first sentence of the paragraph bold.  How do I do this?

I assume I will use a qrRichEdit control but that is about as far as I have gone....  This needs to be done by the program with no user intervention.
Avatar of itamar
itamar

Where the text to be written come from ? (database, typed, another control...)
We also had similar problems to solve. I presume that you would
like the first line to be bold while printing. Be sure that the
Printer/s unit is included.

var PText : TextFile;

begin
     AssignPrn(PText);
     Rewrite(PText);
     Printer.Canvas.Font :=   ; {Use whatever font/bold you want}
     Writeln(PText,'Heading for Report');
     Printer.Canvas.Font :=  ; {Change back to default font}
     { Do your printing using Writeln statements}
     {                                          }
     CloseFile(PText);
end



Avatar of loucks

ASKER

The title of the question got screwed up...

This is delphi 3.0 and QuirkReports :) 2.0i

I would really like to stay away from printing directly on the canvas....    Is it hard to print on the canvas?  
ASKER CERTIFIED SOLUTION
Avatar of sassas081597
sassas081597

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of loucks

ASKER

Sorry to take so long to grade this, but I have a question which relates to this (if you decide not to answer, I will give you full points, but I would like to get your opinion...)  

When I assign the RichEdit as the parent of the qrRichEdit, all I get is the first line on my report... Otherwise, it shows up fine in the RichEdit that I manipulate it in, but as I said, only the first line appears in the qrRichEdit, no matter what I do...  I will put the total points to 200 if you can give me a pointer on where to go with this..
Avatar of loucks

ASKER

This is really starting to be a pain in the butt!!! QuickReport2.0i still has major bugs....  Hope someone else doesn't have to go through this... At least I am on my way now...