You will need to use a database table or .ini file to store the search values outside of the report definitions.
In the end-user solution main form, write a Delphi event-handler to implement the Report.Template.OnLoadEnd event to initialize the Report.AutoSearchFields[ ].SearchExpression and ShowAllValues properties with the values from the database or ini file.
To save the last values used, you could use the Report.BeforeOpenDataPipelines or Report.AfterPrint event.
Hope that makes sense. I am thinking if you implement it in the end-user main form, then the code only exists in a single place, and the end-user never sees it.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
You will need to use a database table or .ini file to store the search
values outside of the report definitions.
In the end-user solution main form, write a Delphi event-handler to
implement the Report.Template.OnLoadEnd event to initialize the
Report.AutoSearchFields[ ].SearchExpression and ShowAllValues properties
with the values from the database or ini file.
To save the last values used, you could use the
Report.BeforeOpenDataPipelines or Report.AfterPrint event.
Hope that makes sense. I am thinking if you implement it in the end-user
main form, then the code only exists in a single place, and the end-user
never sees it.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com