How To…Change Default Template Extension

Question

“How do I change the default template extension in Open/Save dialogs?”

Solution

Use the following code to change the default file extensions which will be used when the open and save dialogs are created to load or save a template.

Sample Delphi code:

  ppReport1.Template.FileExtension := '.mfe';
  ppReport1.Template.FileFilter := 'My Format Extension (*.mfe)|*.MFE';

Substitute the desired description and file extension.