Back to Devexpress

TdxSpreadSheetFormatsRepository.GetOpenDialogFilter Method

vcl-dxspreadsheetcore-dot-tdxspreadsheetformatsrepository.md

latest2.5 KB
Original Source

TdxSpreadSheetFormatsRepository.GetOpenDialogFilter Method

Returns the string containing open dialog masks (with descriptions) for all registered spreadsheet document formats.

Declaration

delphi
function GetOpenDialogFilter: string;

Returns

TypeDescription
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.

See Also

TdxSpreadSheetFormatsRepository Class

TdxSpreadSheetFormatsRepository Members

dxSpreadSheetCore Unit