Updated May 2023
To assert greater control over details of the output file formatting, you may optionally insert //XL directives into the CSV file. Generally these should be at the top, before any data lines, although there are exceptions (e.g. SetRow, AddSheet, ...) whose positioning requirements will be noted in the descriptions of their respective directives.
The syntax for the //XL directives is a bit tricky, and differs from normal A-Shell conventions. See Notes on Syntax.
Important Note: Spaces are not allowed in the directives, and will return syntax errors if included. However, spaces are used in this documentation for clarity and readability purposes. So where the documention displays a syntax line like this:
//XL, MergeCells, colfirst=#, collast=# {,rowfirst=#} {,rowlast=#}
it should be understood to be written in code is:
//XL,MergeCells,colfirst=#,collast=#{,rowfirst=#}{,rowlast=#}
Directive |
Operation |
|---|---|
Add a cell comment. |
|
Add explanatory note at bottom of sheet. |
|
Create link from specified cell to footnotes. |
|
Add or rename sheet. |
|
Override Totals directive in ini file. |
|
Define a font and give it an identifier. |
|
Define a format and give it an identifier. |
|
Merge cells. |
|
Override AppendSeqno directive in ini file. |
|
Add text and special formatting to line one. |
|
Set attributes for one or more columns. |
|
Set default font. |
|
Create a row group. |
|
Override default ini file name. |
|
Override Launch directive in ini file. |
|
Override OutputFormat directive in ini file. |
|
Force page break at specified location. |
|
Set various print features. |
|
Enable RGB color specifications. |
|
Set attributes for a row. |
|
Freeze one or more rows at top of sheet. |
|
Freeze one or more columns at left of sheet. |