Passing a variable toa report

I need to pass a string to a report so that I can find some saved images to later load.

Is there an easy way to do this? Can't find anything in the manual, although I expect it is there somewhere >

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:14AM
    Read the programmers manual on working with categorized report variables
    string values from outside the report need to be passed into a report variable using extra string delimiters.
  • edited 8:14AM
    Is there an easy way to do this?
    Maybe you'll find something for you in those two posts:

    [post="20271"]through Report variables[/post]
    [post="27394"]through script variables[/post]
  • Thanks guys - this is todays task now that I have the loading image issue resolved.
  • hsmhsm
    edited 8:14AM
    I need to pass a string to a report so that I can find some saved images to later load.

    Is there an easy way to do this? Can't find anything in the manual, although I expect it is there somewhere >


    I settled on the following method using script variables as I found it straight forward and very flexible.
    I use it all the time in my reports to pass 'one off variables for display.
    Using script variables ( .script.variables[] insteads of just .variables[] means they do not need declaring in the report, simply refer to them by name in the memo box where you want to show them. They also need no special formatting to accept strings. see programmer manual.

    In the main program, before opening the report have a line like this ( code is in Delphi)
    frxMyReportName.script.Variables['MyVariableName'] :=   MyValue;
    

    MyValue is an ordinary string variable.

    In the report, use a memo box with [MyVariableName] in it.

    hsm

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.