Format Lines inside Memo
Hi,
I have a problem with formating the lines inside a memo. What I do is Close/Open query before printing the memo and I use the following code:
Zabeleska.Lines.Add(Date+' ' + Format('%5s %18s %17s %15s %15s',
[FormatFloat('#,0', tip), FormatFloat('#,##0.00', User),
FormatFloat('#,##0.00', test),
FormatFloat('#,##0.00', test1),
FormatFloat('#,0', diff)]));
The Result I get doesn't order the lines like its supposed to and just scrambles them across the screen.
I've done this in Delphi7 with the quick report and it works like this.
Please tell me if there is some code to order the lines.
I have a problem with formating the lines inside a memo. What I do is Close/Open query before printing the memo and I use the following code:
Zabeleska.Lines.Add(Date+' ' + Format('%5s %18s %17s %15s %15s',
[FormatFloat('#,0', tip), FormatFloat('#,##0.00', User),
FormatFloat('#,##0.00', test),
FormatFloat('#,##0.00', test1),
FormatFloat('#,0', diff)]));
The Result I get doesn't order the lines like its supposed to and just scrambles them across the screen.
I've done this in Delphi7 with the quick report and it works like this.
Please tell me if there is some code to order the lines.
Comments