Want to fill value @ runtimet

Hello friends,

I am using FastReport v2.5 in D7.

I have designed a report, connected a dataset, it is all working nice & fast.

What I need is, I have a placed a tFrMemoView component on to the PageHeader band, need to assign value (for ex. report desc.) to it, how do I do it.

Any help would be great.

Thanks

Comments

  • edited 5:32PM
    There are several way to do that.

    - place a variable reference in the memo: [YOUR_VAR], if You declare it in the dictionary then You can assign a value to it by coding on Delphi level:
    frVariables[YOUR_VAR]:=..., this is variant, so any value can be assigned to it. If it is not declared (in the dictionary) then You must provide a value for it in the TFRReport's OnGetValue event handler

    - in the TFRReport's OnBeforePrint event handler write the appropriate code:
    If If View.Name='...' then ....

    - from dialog forms

    -etc.

    Regards:Alex
  • edited 5:32PM
    Hi Alex,

    I appreciate Ur interest in helping.

    Regards.

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.