Problem with a string variable from delphi

stefquestefque Serbia
edited 7:40PM in FastReport 4.0
I send variables from Delphi to a report like this

fizvestaj.frxreport1.variables := ''''+dbmemo1.Text+'''';

When it's only one line in the program it works fine, but when that dbmemo1 field has more then one lines it prints ' on beginning and ending of the memo field in report... How can I fix this?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:40PM
    you cannot pass multilined strings in this manner
    youse the an frxdbdataset and in the tfrxmemoview use [datasetname."fieldname"]
    and set the band and memo to stretch.
    there are other methods that can be used but this is the simplest.
  • gpigpi
    edited 7:40PM
    Also you can use script variables instead of report variables
  • stefquestefque Serbia
    edited 7:40PM
    Thank you... I solved this...

Leave a Comment