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

Text Search - Capturing Settings

edited February 2004 in General
I am using the new Text Search capabilities (quite nice!)

What I'd like to be able to do is capture the elements in
TextSearchSettings, and save them to my database.
I have an event that is called OnPreviewFormClose.
However, when I look at the TextSearchSettings (DefaultString for example),
it contains the original values, not the changed values.

What I'd like to do is when someone changes the values (WholeWord,
DefaultString), I'd like to store them for the next run of the report.
However, no matter what the user changes, all I see OnPreviewFormClose is
the original values.

Is there any way around this?

Joe

Comments

  • edited February 2004
    Hi Joe,

    How are you giving your users the ability to change the TextSearchSettings?
    If you are using the TppDesigner, the OnPreviewFormClose will not fire when
    it is closed. In my testing, when I loaded a report in the designer at
    runtime, changed the TextSearchSettings, closed the designer, then loaded
    the same report in the print preview and closed that form, the settings were
    equal to the changed values. Let me know if I'm misunderstanding the issue.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    I am using the TppViewer. I set the defaults. I want to capture what the
    user has done (via right click).
    I call TppReport.OnPreviewFormClose. Within that event, the
    TppReport.TextSearchSettings are the original settings, not those modified
    by the user.

    Do you have an example of what worked for you?

    Thanks


This discussion has been closed.