Adding Variable Failes

To reproduce:

Create new report
From Report Menu, Choose Variables
Add Group - call it CompanyInfo
Add Variable - Call it Company
click on the check

Add Page Header
From the Data Tree Variables Tab, drag Company to the page header

Click on PREVIEW icon

Instant error...

Help!

Doug

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:05AM
    olsonware wrote: »
    To reproduce:

    Create new report
    From Report Menu, Choose Variables
    Add Group - call it CompanyInfo
    Add Variable - Call it Company
    click on the check

    Add Page Header
    From the Data Tree Variables Tab, drag Company to the page header

    Click on PREVIEW icon

    Instant error...

    Help!

    Doug
    you created the variable, gave it a name but you did not give it a value.
    either a string value enclosed in apostrophe ie : 'mycompany name' or an expression to be calculated or a datafield.
    since it has no value when the report is previewed the tfrxreportcomponent's ongetvalue event is fired and since there is no run time delphi code for the ogv event you will get an error.

    read the programmers manual about working with variables.

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.