Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetFormatsRepository.GetSaveDialogFilter Method

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

#Declaration

Delphi
function GetSaveDialogFilter: string;

#Returns

Type Description
string

The active save dialog filter.

#Remarks

Call this function to obtain the masks of all file formats to which the Spreadsheet/Report Designer control can export the opened spreadsheet document. The GetSaveDialogFilter 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 to only the supported spreadsheet document formats and populate the dialog’s dropdown filter, assign the GetSaveDialogFilter function result to the TSaveDialog component’s Filter property:

VCL SpreadSheet: The Save File Dialog

Note that certain spreadsheet document format implementations do not support both import and export operations. Call the GetOpenDialogFilter function to obtain the masks of all file formats that the Spreadsheet and Report Designer controls can load.

See Also