Format Lines inside Memo

edited 3:45PM in FastReport 4.0
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.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:45PM
    typical would be to use memo.memo.add( ) method for each line you want to have in the memoviews memo.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.