This commit is contained in:
jackchenyang 2024-05-11 10:13:33 +08:00
commit 0336b35a73
3 changed files with 29 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -3476,6 +3476,7 @@
</Compile>
<Compile Include="HotProcessHard\HardFeedback.aspx.cs">
<DependentUpon>HardFeedback.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="HotProcessHard\HardFeedback.aspx.designer.cs">
<DependentUpon>HardFeedback.aspx</DependentUpon>

View File

@ -979,18 +979,18 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
XSSFWorkbook hssfworkbook = new XSSFWorkbook();
XSSFSheet ws = (XSSFSheet)hssfworkbook.CreateSheet("管道焊接工作记录");
#region
#region
ws.SetColumnWidth(0, 18 * 256);
ws.SetColumnWidth(1, 9 * 256);
ws.SetColumnWidth(2, 6 * 256);
ws.SetColumnWidth(3, 12 * 256);
ws.SetColumnWidth(4, 18 * 256);
ws.SetColumnWidth(5, 19 * 256);
ws.SetColumnWidth(6, 16 * 256);
ws.SetColumnWidth(5, 15 * 256);
ws.SetColumnWidth(6, 15 * 256);
ws.SetColumnWidth(7, 13 * 256);
ws.SetColumnWidth(8, 14 * 256);
ws.SetColumnWidth(9, 13 * 256);
ws.SetColumnWidth(8, 10 * 256);
ws.SetColumnWidth(9, 10 * 256);
ws.SetColumnWidth(10, 13 * 256);
ws.SetColumnWidth(11, 10 * 256);
ws.SetColumnWidth(12, 16 * 256);
@ -1230,20 +1230,35 @@ 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.PrintSetup.FitWidth = 1;
ws.PrintSetup.FitHeight = 0;
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
ws.FitToPage = true;
ws.PrintSetup.FitWidth = 1;
ws.PrintSetup.FitHeight = short.MaxValue;
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 = 70;
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))
{