Displaying a list of style sets, and application of a selected style

Top  Previous  Next

Style libraries are frequently used for displaying available style sets in controls such as “ComboBox” or “ListBox”. The style selected by the user can be applied to the report.

 

Displaying the list:

 

StyleSheet.GetList(ComboBox1.Items);

 

Using the selected style in the report:

 

frxReport1.Styles := StyleSheet.Items[ComboBox1.ItemIndex];

 

or

 

frxReport1.Styles := StyleSheet.Find[ComboBox1.Text];