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

New to RP - how do I NOT show AutoSearchDialog

edited January 2005 in End User
Hello;

I'm using a ppDataDictionary, a ppReportExplorer, a ppDesigner, and a
ppReport. D7, DBISAM.

I have got Dade set up properly, I think, but when passing search
parameters in code using GetAutoSearchValues, I don't want the
AutoSearchDialog to pop up.

ppReport1 apparently ignores the setting for ShowAutoSearchDialog. No
matter how I set it, the dialog shows up anyway. If I click on through
the AutoSearch dialog, the report correctly finds the right data.

If I put in values in the AutoSearch dialog, it doesn't use them; it
uses the values as above.

How can I cause the Auto Search Dialog to not show up?

Thanks!
Brian

Comments

  • edited January 2005
    Hi Brian,

    Try setting the Report.ShowAutoSearchDialog property to False.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2005

    Try using the Report.OnInitializeParameters event:

    Report.AutoSearchFields[0].SearchExpression := 'T';
    Report.ShowAutoSearchDialog := False;



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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2005
    Hello, Nard;

    That worked - thank you very much!

    Just for education's sake, why did the report ignore the
    ShowAutoSearchDialog setting in it's properties? It seems
    counterintuitive that it should be ignored.

    Thanks again!
    Brian Huffman (D-Soft LLC)

  • edited January 2005

    When I perform a simple test here, it works properly. I can set
    Report.ShowAutoSearchDialog to False and call Report.Print and the
    autosearch dialog is not displayed.

    If you have code that creates search criteria in code, then that could cause
    the property to internally be set to True.

    You cannot use the Report.OnGetAutoSearchValues event because that event
    fires after too late - the dialog has already been shown.



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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.