update weld day report

This commit is contained in:
jackchenyang 2024-05-10 09:49:00 +08:00
parent 6bf614f274
commit f84a8d8d56
2 changed files with 10 additions and 6 deletions

Binary file not shown.

View File

@ -378,14 +378,15 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
string str= "CC7: 监理: Worley:";
str += "\n\n第 &P 页,共 &N 页";
footer.Center = str;
#endregion
#region
#endregion
ws.PrintSetup.FitWidth = 1;
ws.PrintSetup.FitHeight = 0;
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
ws.FitToPage = false;
ws.SetMargin(MarginType.LeftMargin, (double)1.2 / 3);
ws.SetMargin(MarginType.RightMargin, (double)1.2 / 3);
@ -395,6 +396,9 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
ws.PrintSetup.Scale = 70;
ws.ForceFormulaRecalculation = true;
ws.PrintSetup.FitWidth = 1;
ws.PrintSetup.FitHeight = 0;
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
using (FileStream filess = System.IO.File.OpenWrite(ReportFileName))
{
hssfworkbook.Write(filess);