|
@@ -34,7 +34,11 @@ func (b *ProductBillExcel) drawTitle() error {
|
|
|
b.Row++
|
|
|
startCell := fmt.Sprintf("A%d", b.Row)
|
|
|
endCell := fmt.Sprintf("H%d", b.Row)
|
|
|
- marginLeft := excelize.PageMarginLeft(0.35)
|
|
|
+ marginLeft := excelize.PageMarginLeft(0.00)
|
|
|
+ if b.IsPdf == "true" {
|
|
|
+ marginLeft = excelize.PageMarginLeft(0.35)
|
|
|
+ }
|
|
|
+
|
|
|
b.Excel.SetColWidth(b.SheetName, "A", "A", 18.5)
|
|
|
b.Excel.SetColWidth(b.SheetName, "B", "B", 16)
|
|
|
b.Excel.SetColWidth(b.SheetName, "C", "G", 12)
|