Historically, the concept of an Origin workbook template was fairly narrow. These were files of type *.OTW and *OTWU and they did not store data or operations of any kind. More recently, the concept of "workbook template" has been expanded to include such things as a workbook file that contains some baseline data that is used repeatedly in some analysis or graphing operation; or a workbook that contains no data but does contain a sequence of analysis operations that are stored with the workbook -- a configuration known as an Analysis Template.
The user should note that these three types of "workbook templates" are saved in different ways:
The remainder of this topic refers to things that are stored in *.OTW and *OTWU files.
Settings in the Worksheet Properties dialog box are saved with the workbook template:
To open the Worksheet Properties dialog box:
or
To learn more, see Reference: The Worksheet Properties Dialog Box.
Settings in the Column Properties dialog box are saved with the workbook template:
To open the Column Properties dialog box:
or
To learn more, see Reference: The Column Properties Dialog Box.
Column formulae defined with the Set Values dialog box or entered directly into the F(x)= column label row, are saved in the workbook template.
Additionally, scripts or variables defined in the Before Formula Scripts panel of Set Values are saved with the workbook template.
To open the Set Values dialog box:
To learn more, see:
As is the case with graph windows, you can add annotations (text, drawing objects, buttons) to the worksheet. Any annotations along with the settings associated with the following dialog box controls, are saved with the workbook template.
The X-Function based dialog boxes that open from the Data: Import from File menu support saving your import options to the worksheet.
Note:
When you use the Import Wizard to import data, you have the option of creating and saving an Origin Import Filter. These filters contain parsing instructions for header information and data and may contain instructions for handling variables associated with a file and/or post-import data processing instructions. Such filters can be saved as a standard OIF files, or -- as concerns in this case -- they may be saved with an Origin workbook template. This template would be configured specifically for importing your data files.
To learn more, see Import Wizard and Import Filter Manager.
When importing data with the Import Wizard, you have the option of extracting and storing file header values in the page.info area of the workbook. These values are stored with the workbook template.
The equations in the Worksheet Query dialog box are saved with the template.
To open the Worksheet Query dialog box:
To learn more, see Worksheet Query.
Scripts can be associated with the worksheet in several ways. As mentioned, they can be entered into the Before Formula Scripts panel of the Set Values dialog box. You can attach an text, drawing or button object and associate a script with the object via the Programming Control dialog box, mentioned above.
Scripts can also be added by entering them into:
A key feature of the ADO (database connectivity) tool is that it allows you to save a query with the worksheet. When you do so, you have the option of saving the query with the workbook template. This allows you to open a copy of your worksheet template, connect to your database, and automatically import only the data that you want.
For more information on creating and saving a query with the ADO tool, see Building and Saving a Query.