Home DADE

Displaying Autosearch values when using Report Explorer

edited May 2003 in DADE
Hi all. I need to be able to display autosearch criteria in all reports.
My application uses the Report Explorer to allow users to create and modify
reports. Anyone know of a way I can display the autosearch values on any
report that a user opens?

Thanks!

Comments

  • edited May 2003
    Use a memo control and call Report.GetAutosearchDescriptionLines. It is
    documented in the help file. There is also a demo in the main autosearch
    demos folder of the RBuilder installation that uses this to display the
    criteria values entered at the top of the report.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited May 2003
    Thanks Jim. I have seen that demo, but I am confused as to how to apply
    this logic to the Report Explorer and it's reports. I have enabled the
    report explorer similar to the demo for that.



  • edited May 2003
    Where do you want the memo to be displayed? Ususally it will be in the title
    or summary bands. So, if none of your reports have one of these bands, then
    it should be easy to create that band dynamically and create a memo in it
    and assign it to an event handler on your form. Most likely you have reports
    with these bands already defined, or your users have created them, so, there
    needs to be another alternative. You can create a page object before the
    report prints. Then create a draw command that contains the text of the auto
    search description lines. Here is an exampleof adding autosearch description
    lines when printing to the printer:

    http://www.digital-metaphors.com/tips/AddPageObjectForEndUser.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.