57
CoolSpools Spool Converter User Guide V6R1
Page:
114
www.ariadnesoftware.co.uk
Example:
CVTSPLXL
...
DFNSTYLES(
(*NORMAL *NO)
(HEADER_ROW *YES *NO *GENERAL *NO *BOTTOM *ARIAL 10 *NO *NO
*NO *WHITE *BLUE)
(LOCKED *YES *NO *GENERAL *NO * BOTTOM *ARIAL 10 *NO *NO *NO
*WHITE *BLUE))
APYSTYLES((DETAIL_ROW 1 A LOCKED))
XLSPROTECT(*YES)
This code redefines the *NORMAL style such that, by default, data cells are not
locked when worksheet protection is in effect. It then defines a new style called
HEADER_ROW which specifies styling for a row group called HEADER_ROW.
Finally, it defines a style called “LOCKED such that cells to which this style is applied
are locked and also appear white on blue. The style LOCKED is applied to column A
of the first row generated by the row group DETAIL_ROW. Worksheet protection is
switched on.
The overall effect is to create a worksheet where the user can make changes to the
data apart from the headings and the first cell of the detail rows, which appear white
on blue rather than black on white to emphasize the fact they are different.
Hidden
(Excel only)
Allows you to indicate that a column should be hidden. This might be useful if you do
not wish the column to appear but want it to be available for calculations.
Options are:
*NO
(Default). The column is not hidden.
*YES
The columns will be hidden
Horizontal alignment
Controls the horizontal alignment of data in a cell.
Options are:
*GENERAL
(Default). Character data is left-aligned. Numeric
data and dates are right-aligned. In relation to
header text, the alignment is dictated by the nature
of the data in the column, not the header text, i.e.
headings for columns of character data will align to
the left and headings for numeric columns and
date columns will align to the right.
*LEFT
Left-aligned.
*RIGHT
Right-aligned.
*CENTER
Center-aligned
*FILL
(Excel only) Fill. Repeats the data in the cell
across the entire width of the column.
*JUSTIFY
Forces data to fill the entire width of the column,
wrapping text to additional lines, if necessary.
56
CoolSpools Spool Converter User Guide V6R1
Page:
115
www.ariadnesoftware.co.uk
*DISTRIBUTED (Excel only) Distributed. Available only in Excel
2002 and above. It results in the cell contents
being distributed across the width of the cell, to
line up with both the left and right side.
Indent
Sets the text indent level. The effects of this are somewhat different between Excel
and HTML/XML.
Options are:
*NONE
(Default). No indent is applied.
0-15
(Excel) Sets the indentation level. Each indentation
level is equivalent to 3 spaces. All text affected is
indented to the same extent, i.e. where text wraps
to more than one line, it is all indented to the same
point.
0-99
(HTML/XML). Sets the text-indent property in ems
(the width of an em is equivalent to the point size
of the font). The first line of the text only is
indented.
Vertical alignment
Controls the vertical alignment of data in a cell.
Options are:
*BOTTOM
(Default). Information is aligned at the bottom of
the cell.
*TOP
Information is aligned at the top of the cell.
*CENTER
information is aligned in the center of the cell.
*JUSTIFY
Text is spread evenly vertically across the height
of the cell.
*DISTRIBUTED (Excel only) Text is spread evenly between the top
of the cell and the bottom. Effectively, blank space
is placed between each line so that the complete
cell is filled.
Wrap text
Controls whether text wraps in cells.
Options are:
*NO
(Default). Text does not wrap in the cell. If the text
does not fit in the column width, it is truncated.
*YES
Text wraps in the cell. If the text foes not fit in the
column width, it will flow on to multiple lines.
Shrink to fit
(Excel only)
Determines whether the cell contents are shrunk to fit the available column width by
reducing the font size.
Options are:
61
CoolSpools Spool Converter User Guide V6R1
Page:
116
www.ariadnesoftware.co.uk
*NO
(Default). Text is not shrunk to fit.
*YES
Text is fitted to the available column width by
reducing the font size, as required.
Row height
Sets the height of rows.
Note that this attribute is only effective if set on a style which is applied to an entire
row.
Options are:
*AUTOFIT
(Default). The height of rows is automatically set
by Excel or your browser (XML) based on the font
size.
0-409
(Excel) Specify the row height in points (72 points
= 1 inch)
0-32767
(XML) Specify the row height in points (72 points =
1 inch)
Font name
Specifies the name of the font to be used.
Note that CoolSpools Spool Converter cannot validate whether the font name you
have specified is valid or whether it will be available when the file is opened. If the
font name is typed incorrectly or if the font is not available when the file is opened,
Excel or your browser will substitute a different font.
Note also that when the font you use in Excel is not one of the “well known” fonts
(Arial, Courier New or Times New Roman), CoolSpools Spool Converter may not be
able to calculate column widths correctly because it has no access to the font
metrics on which those calculations depend.
Excel options are:
*ARIAL
(Default). Arial
*COURIER
Courier New
*TIMES
Times New Roman
font_name
Specify the name of the font to use
HTML/XML options are:
*SANS
(Default) Sans-serif font family.
*SERIF
Serif font family
*MONO
Monospaced font family.
*ARIAL
(Default). Arial
*COURIER
Courier New
*TIMES
Times New Roman
font_name
Specify the name of the font to use
Font size in points
The point size of the font to use. The default is 10 for Excel and 12 for HTML/XML.
Bold
64
CoolSpools Spool Converter User Guide V6R1
Page:
117
www.ariadnesoftware.co.uk
Whether the font is bold or not. Note that setting this attribute will only result in a bold
font if a suitable bold version of the font is available or if the normal font can be
adapted.
Options are:
*NO
(Default). Normal font
*YES
Bold font.
Italic
Whether the font is italic or not. Note that setting this attribute will only result in an
italic font if a suitable italic version of the font is available or if the normal font can be
adapted.
Options are:
*NO
(Default). Normal font
*YES
Italic font.
Underlined
Whether the font is underlined or not and, if it is, the style of underlining.
Excel options are:
*NO
(Default). No underlining
*SINGLE
Single underlining
*DOUBLE
Double underlining
*SGLACC
Single accounting underlining
*DBLACC
Double accounting underlining
XML options are:
*NO
(Default). No underlining
*YES
Single underlining
Text color
Determines the color of text in cells.
The Excel default is:
*AUTO
The Excel default text color (usually black)
Alternatively, you can use one of the 56 built-in Excel colors listed below with their
RGB coding.
*BLACK
000000
*WHITE
FFFFFF
*RED
FF0000
*BRIGHTGREEN
00FF00
*BLUE
0000FF
*YELLOW
FFFF00
*PINK
FF00FF
*TURQUOISE
00FFFF
*DARKRED
800000
89
CoolSpools Spool Converter User Guide V6R1
Page:
118
www.ariadnesoftware.co.uk
*GREEN
008000
*DARKBLUE
000080
*DARKYELLOW
808000
*VIOLET
800080
*TEAL
008080
*GRAY25
C0C0C0
*GRAY50
808080
*MAUVE
9999FF
*PLUM
993366
*YELLOWWHITE
FFFFCC
*LIGHTTURQUOISE
CCFFFF
*DARKPINK
660066
*BLUSH
FF8080
*MEDIUMBLUE
0066CC
*PALEMAUVE
CCCCFF
*SKYBLUE
00CCFF
*LIGHTGREEN
CCFFCC
*LIGHTYELLOW
FFFF99
*PALEBLUE
99CCFF
*ROSE
FF99CC
*LAVENDER
CC99FF
*TAN
FFCC99
*LIGHTBLUE
3366FF
*AQUA
33CCCC
*LIME
99CC00
*GOLD
FFCC00
*LIGHTORANGE
FF9900
*ORANGE
FF6600
*BLUEGRAY
666699
*GRAY40
969696
*DARKTEAL
003366
*SEAGREEN
339966
*DARKGREEN
003300
*OLIVEGREEN
333300
*BROWN
993300
*INDIGO
333399
*GRAY80
333333
When converting to *XLSX format, you can also optionally specify your own RGB
color code in the form of six hexadecimal digits (similar to the codes shown in the
table above). Please note that this option is not supported when converting to *XLS
(BIFF8) format.
The XML default is:
*BLACK
Black
Alternatively, you can use one of the HTML colors listed below with their RGB
coding.
*ALICEBLUE
F0F8FF
84
CoolSpools Spool Converter User Guide V6R1
Page:
119
www.ariadnesoftware.co.uk
*ANTIQUEWHITE FAEBD7
*AQUA
00FFFF
*AQUAMARINE 7FFFD4
*AZURE
F0FFFF
*BEIGE
F5F5DC
*BISQUE
FFE4C4
*BLACK
000000
*BLANCHEDALMOND FFEBCD
*BLUE
0000FF
*BLUEVIOLET
8A2BE2
*BROWN
A52A2A
*BURLYWOOD DEB887
*CADETBLUE
5F9EA0
*CHARTREUSE 7FFF00
*CHOCOLATE
D2691E
*CORAL
FF7F50
*CORNFLOWERBLUE 6495ED
*CORNSILK
FFF8DC
*CRIMSON
DC143C
*CYAN
00FFFF
*DARKBLUE
00008B
*DARKCYAN
008B8B
*DARKGOLDENROD B8860B
*DARKGRAY
A9A9A9
*DARKGREY
A9A9A9
*DARKGREEN
006400
*DARKKHAKI
BDB76B
*DARKMAGENTA 8B008B
*DARKOLIVEGREEN 556B2F
*DARKORANGE FF8C00
*DARKORCHID 9932CC
*DARKRED
8B0000
*DARKSALMON E9967A
*DARKSEAGREEN 8FBC8F
*DARKSLATEBLUE 483D8B
*DARKSLATEGRAY 2F4F4F
*DARKSLATEGREY 2F4F4F
*DARKTURQUOISE 00CED1
*DARKVIOLET
9400D3
*DEEPPINK
FF1493
*DEEPSKYBLUE 00BFFF
*DIMGRAY
696969
*DIMGREY
696969
*DODGERBLUE 1E90FF
*FELDSPAR
D19275
*FIREBRICK
B22222
*FLORALWHITE FFFAF0
*FORESTGREEN 228B22
*FUCHSIA
FF00FF
*GAINSBORO
DCDCDC
*GHOSTWHITE F8F8FF
81
CoolSpools Spool Converter User Guide V6R1
Page:
120
www.ariadnesoftware.co.uk
*GOLD
FFD700
*GOLDENROD DAA520
*GRAY
808080
*GREY
808080
*GREEN
008000
*GREENYELLOW ADFF2F
*HONEYDEW
F0FFF0
*HOTPINK
FF69B4
*INDIANRED
CD5C5C
*INDIGO
4B0082
*IVORY
FFFFF0
*KHAKI
F0E68C
*LAVENDER
E6E6FA
*LAVENDERBLUSH FFF0F5
*LAWNGREEN 7CFC00
*LEMONCHIFFON FFFACD
*LIGHTBLUE
ADD8E6
*LIGHTCORAL
F08080
*LIGHTCYAN
E0FFFF
*LIGHTGOLDENROD FAFAD2
*LIGHTGRAY
D3D3D3
*LIGHTGREY
D3D3D3
*LIGHTGREEN
90EE90
*LIGHTPINK
FFB6C1
*LIGHTSALMON FFA07A
*LIGHTSEAGREEN 20B2AA
*LIGHTSKYBLUE 87CEFA
*LIGHTSLATEBLUE 8470FF
*LIGHTSLATEGRAY 778899
*LIGHTSLATEGREY 778899
*LIGHTSTEELBLUE B0C4DE
*LIGHTYELLOW FFFFE0
*LIME
00FF00
*LIMEGREEN
32CD32
*LINEN
FAF0E6
*MAGENTA
FF00FF
*MAROON
800000
*MEDIUMAQUAMARINE 66CDAA
*MEDIUMBLUE 0000CD
*MEDIUMORCHID BA55D3
*MEDIUMPURPLE 9370D8
*MEDIUMSEAGREEN 3CB371
*MEDIUMSLATEBLUE 7B68EE
*MEDIUMSPRINGGREEN 00FA9A
*MEDIUMTURQUOISE 48D1CC
*MEDIUMVIOLETRED C71585
*MIDNIGHTBLUE 191970
*MINTCREAM
F5FFFA
*MISTYROSE
FFE4E1
*MOCCASIN
FFE4B5
*NAVAJOWHITE FFDEAD
Documents you may be interested
Documents you may be interested