The function stylesheet specifies a style sheet that will be applied to any result documents created after the function has been called. This style sheet overrides the styles in the result document when the document is produced.
TEXT ignore := stylesheet ( label; stylesheet )
The result of the function stylesheet is of type TEXT. This function has two parameters:
The result of the function stylesheet is of type TEXT. It is currently undefined and should be ignored.
The function stylesheet has the following effects on ITP result documents:
The functionality of the function stylesheet is only available for the ITP Microsoft Word Binary support and will be ignored for other document formats.
Example
# BEGIN
TEXT ignore := stylesheet ("Insurance For Life"; "Invoice")
TEXT path := put_in_document ("invoice.doc"; path; "Y"; "N"; "N")
ASSIGN ignore := stylesheet ("Insurance For Life"; "Policy")
END #
The style sheets must be stored on the file system using the following convention; <base directory>\<lbl>\Style-<stl>.doc
According this convention;
All styles from this document are copied into the result document, overriding the styles that might already be defined in the document.
The example above uses the following 2 documents to apply the styles: