Problem with a string variable from delphi

stefquestefque Serbia
edited 8:28AM 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 8:28AM
    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 8:28AM
    Also you can use script variables instead of report variables
  • stefquestefque Serbia
    edited 8:28AM
    Thank you... I solved this...

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.