@@ -437,6 +437,15 @@ The following properties are currently used when generating an XLSX file, but no
437
437
- ` ws['!rowBreaks'] ` : array of row break points, e.g. ` [16,32] `
438
438
- ` ws['!colBreaks'] ` : array of col break points, e.g. ` [8,16] `
439
439
- ` ws['!pageSetup'] ` : `{scale: '100', orientation: 'portrait'||'landscape'}
440
+ - ` ws['!printHeader'] ` : array of first and last row indexes for repeat header on printing, e.g. ` [1,1] ` to repeat just first row
441
+ - ` ws['!freeze'] ` : string cell reference for breakpoint, e.g. the following will freeze the first row and first column:
442
+ {
443
+ xSplit: "1",
444
+ ySplit: "1",
445
+ topLeftCell: "B2",
446
+ activePane: "bottomRight",
447
+ state: "frozen"
448
+ }
440
449
441
450
442
451
### Workbook Object
@@ -533,43 +542,42 @@ top-level attributes: `fill`, `font`, `numFmt`, `alignment`, and `border`.
533
542
534
543
535
544
| Style Attribute | Sub Attributes | Values |
536
- | :-------------- | :------------- | :------------- | :----- |
537
- | fill | patternType | ` "solid" ` or ` "none" ` |
545
+ | :-------------- | :------------- | :------------- |
546
+ | fill | patternType | ` "solid" ` or ` "none" `
538
547
| | fgColor | ` COLOR_SPEC `
539
548
| | bgColor | ` COLOR_SPEC `
540
549
| font | name | ` "Calibri" ` // default
541
550
| | sz | ` "11" ` // font size in points
542
551
| | color | ` COLOR_SPEC `
543
- | | bold | ` true || false `
544
- | | underline | ` true || false `
545
- | | italic | ` true || false `
546
- | | strike | ` true || false `
547
- | | outline | ` true || false `
548
- | | shadow | ` true || false `
549
- | | vertAlign | ` true || false `
552
+ | | bold | ` true ` or ` false `
553
+ | | underline | ` true ` or ` false `
554
+ | | italic | ` true ` or ` false `
555
+ | | strike | ` true ` or ` false `
556
+ | | outline | ` true ` or ` false `
557
+ | | shadow | ` true ` or ` false `
558
+ | | vertAlign | ` true ` or ` false `
550
559
| numFmt | | ` "0" ` // integer index to built in formats, see StyleBuilder.SSF property
551
560
| | | ` "0.00%" ` // string matching a built-in format, see StyleBuilder.SSF
552
561
| | | ` "0.0%" ` // string specifying a custom format
553
562
| | | ` "0.00%;\\(0.00%\\);\\-;@" ` // string specifying a custom format, escaping special characters
554
563
| | | ` "m/dd/yy" ` // string a date format using Excel's format notation
555
- | alignment | vertical | ` "bottom"|| "center"|| "top" `
556
- | | horizontal | ` "bottom"|| "center"|| "top" `
557
- | | wrapText | ` true || false `
564
+ | alignment | vertical | ` "bottom" ` or ` "center" ` or ` "top" `
565
+ | | horizontal | ` "bottom" ` or ` "center" ` or ` "top" `
566
+ | | wrapText | ` true ` or ` false `
558
567
| | readingOrder | ` 2 ` // for right-to-left
559
568
| | textRotation | Number from ` 0 ` to ` 180 ` or ` 255 ` (default is ` 0 ` )
560
569
| | | ` 90 ` is rotated up 90 degrees
561
570
| | | ` 45 ` is rotated up 45 degrees
562
- | | | ` 135 ` is rotated down 45 degrees
571
+ | | | ` 135 ` is rotated down 45 degrees
563
572
| | | ` 180 ` is rotated down 180 degrees
564
573
| | | ` 255 ` is special, aligned vertically
565
574
| border | top | ` { style: BORDER_STYLE, color: COLOR_SPEC } `
566
575
| | bottom | ` { style: BORDER_STYLE, color: COLOR_SPEC } `
567
576
| | left | ` { style: BORDER_STYLE, color: COLOR_SPEC } `
568
577
| | right | ` { style: BORDER_STYLE, color: COLOR_SPEC } `
569
578
| | diagonal | ` { style: BORDER_STYLE, color: COLOR_SPEC } `
570
- | | diagonalUp | ` true||false `
571
- | | diagonalDown | ` true||false `
572
-
579
+ | | diagonalUp | ` true ` or ` false `
580
+ | | diagonalDown | ` true ` or ` false `
573
581
574
582
** COLOR_SPEC** : Colors for ` fill ` , ` font ` , and ` border ` are specified as objects, either:
575
583
* ` { auto: 1} ` specifying automatic values
0 commit comments