## Saving a report set

After you have created or modified a report set, you should then save it in order to be able to load it the next time.

By default, report set files contain a .cls suffix. This is the format that provides optimal performance in the JReport toolset. Report set files can also be stored in the following formats:

- Report Set Source File (.rpt)
  The report set source file is a file saved in text format, which can be edited in any text editor.
- Self Contained Report Set (.clx)
  The self-contained report set is a binary report set file, which contains not only the report set's layout but also the catalog with its own resources.
- XML Format Report Set (.cls.xml)
  The XML format report set follows the XML standard, which can be edited with both JReport Designer and external XML editors. Report set that contains customized user defined objects (UDO) cannot be saved to XML format.

  Note: The XML feature for report sets is under license control. To obtain the special key, contact Jinfonet Support (support@jinfonet.com).

### Saving a report set in its current format

To save a report set in its current format, click File > Save on the menu bar. If the report set to be saved is new, the Save Report As dialog will appear for you to input a name.

This operation can also be accomplished by pressing the Ctrl + S keys.

### Saving a report set in a different name in the current directory

1. Click File > Save As on the menu bar.
2. In the Save Report Set As dialog, type a new file name in the Report Name field.
3. Select a report set type from the Report Sets of Type drop-down list.
4. Click OK to save the report set in the new name.

### Saving a report set to a different catalog

Since the resources for a catalog file are shared by all report sets based on it, if you have different developers develop report sets at the same time, and you want to use the same catalog in order for all the resources to be reused, you can have them save their report sets with their related resources to a "universal" catalog file. In this way, the to-be-saved report set's resources such as queries, formulas, and parameters will be merged into the target "universal" catalog file.

To save a report set to a different catalog:

1. Click File > Save To on the menu bar.
2. Browse to the location of the target catalog, then click Save.
3. In the Warning message box, click Yes.

   This saves your report into a target catalog file, which means:

   - The report sets and the relevant files alike will be copied to the directory where the target catalog file is located.
   - The resources (query, formulas, parameters, and so on) that are referenced by this report set in the current catalog will be merged to the target catalog.
   - If the connection does not exist yet in the target catalog, it will be added using the same connection information as in the source catalog.

In this way, even while users work with their own individual catalog files, they can still publish their report sets and associated resources to the target "universal" catalog file. Note that JReport does not handle the concurrent issue. Two people cannot update the "universal" catalog at the same time.

See also Merging catalogs for more information about the Save To command.