From 6c42bba8577e09de0ce1c4f5825fe50d8150e3f9 Mon Sep 17 00:00:00 2001 From: liyh Date: Sat, 11 May 2024 10:07:46 +0800 Subject: [PATCH] 1111 --- .../WeldingProcess/WeldingManage/JointInfo.aspx.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs index 4d86810..afcdbdd 100644 --- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs +++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs @@ -1230,18 +1230,20 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage #endregion - ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 8, rowIndex + 8, style, 0, 14, false, false, true); - rowIndex += 9; + ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 8, rowIndex + 9, style, 0, 14, false, false, true); + rowIndex += 10; ws.SetRowBreak(rowIndex - 1); } + ws.FitToPage = true; ws.PrintSetup.FitWidth = 1; - ws.PrintSetup.FitHeight = 0; + ws.PrintSetup.FitHeight = short.MaxValue; + ws.SetMargin(MarginType.LeftMargin, 0.3); ws.SetMargin(MarginType.RightMargin, 0.2); ws.PrintSetup.Landscape = true; - ws.PrintSetup.Scale = 70; + //ws.PrintSetup.Scale = 70; ws.ForceFormulaRecalculation = true; ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;