How To…Customize Open/Save To File Dialogs

Question

“How do I customize the Open/Save To File dialogs?”

Solution

The Report.Template property has an OnCreateDialog event.

The public event is defined as:

And the TppDialogEvent type is defined as:

You can customize the TOpenDialog and TSaveDialog properties by using this
event to gain access to the Dialog object.

Sample Delphi code: