From b260485f29038ca8df9993edb1c021672b3df7e4 Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 17 Jan 2021 01:06:08 +0800 Subject: support to set print black and white and specified the first printed page number --- xmlWorksheet.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmlWorksheet.go') 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 -- cgit v1.2.1