>
|
|
| (1) |
Using commands from the Layout Constructors package an XML tree representation of a full worksheet can be generated.
>
|
|
| (2) |
The content xml could be inserted directly into the current window using the InsertContent command. It is also possible to save the generated content into a worksheet file or to open it in a new window, as the following examples illustrate.
The ContentToString command converts the content xml into the string form of a mw format file.
>
|
|
| (3) |
The string representation of the worksheet can be opened in a new window using the Display command from the Worksheet package. Note that this package is referenced below using the global name :-Worksheet, since that name is also an export of the loaded DocumentTools:-Layout package.
>
|
|
The worksheet string can also be saved directly as a new worksheet file. In the following example a temporary filename is generated.
>
|
|
That new worksheet file can also be opened directly.
>
|
|