From 4ebc46d4ae176be30f15806309d010285f9a3477 Mon Sep 17 00:00:00 2001 From: liyh Date: Fri, 10 May 2024 18:24:57 +0800 Subject: [PATCH] 1112 --- .../WeldingManage/JointInfo.aspx.cs | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs index 41cc615..34d63eb 100644 --- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs +++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfo.aspx.cs @@ -1232,18 +1232,31 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 8, rowIndex + 8, style, 0, 14, false, false, true); rowIndex += 9; + ws.SetRowBreak(rowIndex - 1); } + ws.PrintSetup.FitWidth = 1; ws.PrintSetup.FitHeight = 0; - ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small; - ws.FitToPage = true; ws.SetMargin(MarginType.LeftMargin, 0.3); ws.SetMargin(MarginType.RightMargin, 0.2); ws.PrintSetup.Landscape = true; - ws.PrintSetup.Scale = 75; - ws.PrintSetup.PaperSize = 9; + ws.PrintSetup.Scale = 69; ws.ForceFormulaRecalculation = true; + ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small; + + + //ws.PrintSetup.FitWidth = 1; + //ws.PrintSetup.FitHeight = 0; + //ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small; + + //ws.FitToPage = true; + //ws.SetMargin(MarginType.LeftMargin, 0.3); + //ws.SetMargin(MarginType.RightMargin, 0.2); + //ws.PrintSetup.Landscape = true; + //ws.PrintSetup.Scale = 75; + //ws.PrintSetup.PaperSize = 9; + //ws.ForceFormulaRecalculation = true; using (FileStream filess = System.IO.File.OpenWrite(ReportFileName)) {