TdxSpreadSheetFormatsRepository.GetOpenDialogFilter Method
Returns the string containing open dialog masks (with descriptions) for all registered spreadsheet document formats.
Declaration
function GetOpenDialogFilter: string;
Returns
Type | Description |
---|---|
string | The active open dialog filter. |
Remarks
Call this function to obtain the masks of all file formats that the Spreadsheet/Report Designer control can currently load. The GetOpenDialogFilter
function result always consists of:
- The
sdxFileDialogAllSupported
resource string followed by the list of file name extension masks corresponding to all supported formats. - Delimited individual spreadsheet document format descriptions followed by the corresponding bracketed file name extension masks.
To restrict the list of files visible in the Open dialog only to the supported spreadsheet document formats and populate the dialog’s dropdown filter, assign the GetOpenDialogFilter
function result to the TOpenDialog component’s Filter property:
Note that certain spreadsheet document format implementations do not support both the import and export operations. Call the GetSaveDialogFilter function to obtain the masks of all formats that the Spreadsheet and Report Designer controls can use as document export targets.