Table of Contents

TFlexCelFormatSettings.PushThreadFormat Method

This method is similar to SetThreadFormat, but it returns the current thread format so you can restore it later with PopThreadFormat.

Remarks

This method is supposed to be used as follows:

SaveFormat := TFlexCelFormatSettings.PushThreadFormat(NewLocale, NewFormatSettings); try //Run reports, convert to pdf, etc using the NewFormatSettings finally TFlexCelFormatSettings.PopThreadFormat(SaveFormat); end;

Syntax

Unit: FlexCel.Core

class function TFlexCelFormatSettings.PushThreadFormat(const aLocaleName: string; const aFmt: TFormatSettings): TFlexCelFormatSettings;

Parameters

<-> Parameter Type Description
const aLocaleName string The name of the locale. This is used for sorting.
const aFmt TFormatSettings The new format settings to be applied to the thread.

Returns

The format settings that were set to the thread before calling this method.

See also