Store and Restore Style Sheets

media_1449120561134.png

Click the report’s Smart Tag, and in the invoked actions list, locate the Style Sheet property and click its ellipsis button.

media_1449120828632.png

In the invoked Styles Editor, use the button, to create new styles.

Define their required properties and click the Save button.

In the invoked Save File dialog, define a name for the style sheet file (.REPSS) to be created and click Save.

Now, in the Styles Editor dialog, use the Delete button to delete the created styles, and close the dialog.

 

media_1254890256764.png

Select the report, by clicking anywhere over the blank area around its bands. In the Property Grid, locate the Style Sheet Path property and click its ellipsis button.

In the invoked Open File dialog, load the created REPSS file.

If you then click the Style Sheet properties ellipsis button, in the invoked Styles Editor, you’ll see that the properties of the styles are read-only. This is because we used the Style Sheet Path property to load the style sheet.

If the Style Sheet Path property is then set to None, and a style sheet is loaded into a report using the Style Sheet property, all the styles loaded from the style sheet file will still be kept in the report, but become editable.

media_1449120876655.png

When you invoke the Styles Editor (via the report’s Style Sheet property) again, you’ll see that the styles are read-only, meaning that they are obtained from an external file.

If the Style Sheet Path property is then set to None, and a style sheet is loaded using the Styles Editor of the Style Sheet property, all these styles will become editable.