diff options
author | xuri <xuri.me@gmail.com> | 2021-01-17 01:06:08 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-01-17 01:06:08 +0800 |
commit | b260485f29038ca8df9993edb1c021672b3df7e4 (patch) | |
tree | d0c1307a6262461d8405aa6537aa3a45a19fb72f /xmlWorksheet.go | |
parent | 054bb9f0612ab7bd5836c3817d105a9b0c9e6059 (diff) |
support to set print black and white and specified the first printed page number
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r-- | xmlWorksheet.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 1f680d2..72a470f 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -108,13 +108,13 @@ type xlsxPageSetUp struct { XMLName xml.Name `xml:"pageSetup"` BlackAndWhite bool `xml:"blackAndWhite,attr,omitempty"` CellComments string `xml:"cellComments,attr,omitempty"` - Copies int `xml:"copies,attr,omitempty"` + Copies uint `xml:"copies,attr,omitempty"` Draft bool `xml:"draft,attr,omitempty"` Errors string `xml:"errors,attr,omitempty"` - FirstPageNumber int `xml:"firstPageNumber,attr,omitempty"` + FirstPageNumber uint `xml:"firstPageNumber,attr,omitempty"` FitToHeight int `xml:"fitToHeight,attr,omitempty"` FitToWidth int `xml:"fitToWidth,attr,omitempty"` - HorizontalDPI int `xml:"horizontalDpi,attr,omitempty"` + HorizontalDPI uint `xml:"horizontalDpi,attr,omitempty"` RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"` Orientation string `xml:"orientation,attr,omitempty"` PageOrder string `xml:"pageOrder,attr,omitempty"` @@ -124,7 +124,7 @@ type xlsxPageSetUp struct { Scale uint `xml:"scale,attr,omitempty"` UseFirstPageNumber bool `xml:"useFirstPageNumber,attr,omitempty"` UsePrinterDefaults bool `xml:"usePrinterDefaults,attr,omitempty"` - VerticalDPI int `xml:"verticalDpi,attr,omitempty"` + VerticalDPI uint `xml:"verticalDpi,attr,omitempty"` } // xlsxPrintOptions directly maps the printOptions element in the namespace |