Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Displaying parameters in a report

edited April 2012 in End User
(apologies if this already appears as a thread, 2nd atempt to post)

Hi,

I am presenting the user with a form containing parameter information,
in this case From and To dates. I then build a query which I pipelne
into the report. All fine.

However, I want to pass in those parameters so that I can display them
in the header (e.g. From: 12-Jan-2011 To: 14-Jan-2011), but can't work
it out. I have tried creating variables, and attempting to populate
them in OnBeforePrint (e.g. ppReport1.Variable1 := '12-Jan-2011') but
the variables aren't published/public.

I am sure it is really easy, but I can't figure it out. Can anyone help
please?

Many thanks




--- posted by geoForum on http://www.newswhat.com

Comments

  • edited August 2012
    Hi,
    to access then Parameter you can assign a variable of type String. In the
    code you can write

    value := Report.Parameters['MyParamName']

    chris


This discussion has been closed.