Inserting CrLf

edited 3:45AM in FastReport 2.xx VCL
Currently I am evaluating FastReports to hopefully replace Crystal Reports.

I want to print an address block using ONE TfrmMemoView control but I can't figure out how to insert a CRLF...

i.e. Address := [tblPEOPLE."ADDRESS_1"] + #13#10 + [tblPEOPLE."ADDRESS_2"] + #13#10 + [tblPEOPLE."CITY"] + ' ' + [tblPEOPLE."PROVINCE"] + ' ' + [tblPEOPLE."POSTAL"];

So it prints like:
ADDRESS 1
ADDRESS 2
CITY PROVINCE POSTAL CODE

Any idea how this can be done?

Thanks
Paul

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:45AM
    first try place apostrophe around '#13#10' or use the memo's lines.add method.
    which way you do it will depend on where you are trying to to it from, Delphi,opb of band or memo's script.
    regards ;)
  • edited 3:45AM
    Putting the #13#10 in single quotes, just made it print the #13#10 as text.

    Using the Lines.Add did the trick thanks. I wasn't aware I could do stuff like that inside FastReports.

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.