Inserting CrLf

edited 1:07PM 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 1:07PM
    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 1:07PM
    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