New Blog Post: PDF/A and Metadata

Printing Parameters on the report?

edited June 2011 in End User
Greetings,

Silly question. While working on a end user reporting solution using
Report Explorer and assigning parameters to select the data, etc. Ran
accross a silly question. How can I print on the end user designed
report the parameter values that were either selected or passed to the
report for data selection?
Of course I see the parameters in the Report Tree as defined, how do I
print those on the report? Simple right? Like if I select a date
range through autoselect I want to print that range on the report?

Thanks for your help.

--
Chris Starre
www.starresoft.com

Comments

  • edited June 2011
    Try using a SystemVariable with VarType set to vtSearchDesc.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2011
    Nard Moseley (Digital Metaphors) wrote:


    OK, that works if the entry is an AutoSearch field, but what about if I
    pass a parameter and it is not defined with AutoSearch, because it is
    passed from a different program calling the report explorer. It is
    only defined in the Search portion of the data selection, as a
    Mandatory entry, but not as an AutoSearch. It does not show as listed
    when using the SystemVariable. This only shows the Date Selections as
    defined in the AutoSearch.

    What I am doing is passing say a Company Number as a parameter from a
    different program. Then using the parameter of CompanyNo to select out
    only records assigned to that Company Number. The user keys in the
    From and To Date selection as described, but I cannot get the report to
    list the actual CompanyNo field on the report.

    Hope this helps.


    --
    Chris Starre
    www.starresoft.com
  • edited June 2011
    For Report.Parameters that are not AutoSearch, try using a Label and
    implement the OnPrint event like this...

    Label.Caption := Report.Parameters['ParamName'];


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2011
    Nard Moseley (Digital Metaphors) wrote:


    This would be fine if the user had access to the code section, but they
    only have access to the report explorer and designer. Is there anyway
    to access this information from the designer to place on the report?


    --
    Chris Starre
    www.starresoft.com
This discussion has been closed.