vcl-dxspreadsheetcore-dot-tdxspreadsheetformatsrepository.md
Returns the string containing open dialog masks (with descriptions) for all registered spreadsheet document formats.
function GetOpenDialogFilter: string;
| Type | Description |
|---|---|
| string |
The active open dialog filter.
|
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:
sdxFileDialogAllSupported resource string followed by the list of file name extension masks corresponding to all supported formats.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.
See Also
TdxSpreadSheetFormatsRepository Class