This commit is contained in:
李云虎 2024-05-10 18:24:57 +08:00
parent 33cdaff252
commit 4ebc46d4ae
1 changed files with 17 additions and 4 deletions

View File

@ -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))
{