Home End User

Me Again - Sorry.

edited February 2017 in End User
Hi Team,
I need to be able to retrieve the paramater and/or AutoSearchField values so I can include them on the report.
e.g. Parameters StartDate & EndDate would appear in the Report Header as:

Design:
"Report period is from " [StartDate] " to " [EndDate] "."

Which at Preview would appear on the report as:
"Report period is from 01/01/2017 to 01/02/2017."

Can you advise please?

Regards & TIA,
Ian

Comments

  • edited February 2017
    Whup! Disregard. Found it by accident.
    All good now.

    Regards & Tks,
    Ian
  • edited June 2017
    Ian Branch wrote:


    Do you mind posting your solution?

    brgds Bernd

    --
  • edited June 2017
    Hi Bernd,

    A couple of options:

    - use SystemVariable set to vtSearchDesc

    - use a Label and implement the OnPrint event like this

    myLabel.Caption := 'Report period: ' + Report.AutoSearchFields[0].Value + '
    to ' + Report.AutoSearchFields[1].Value;




    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2017
    Hi Bernd,
    Sorry, been dealing with a sick Wife.
    As Nard showed.

    Regards,
    Ian
This discussion has been closed.