rbWiki > Design > Templates > How To...Change Default Template Extension

How To...Change Default Template Extension

Table of contents
  1. 1. Question 
  2. 2. Solution

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.

     

Tags
none

Files (0)

 
You must login to post a comment.