Skip to main content

TdxSpreadSheetFormatsRepository.GetSaveDialogFilter Method

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

Declaration

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