diff --git a/WindowsFormsApp6/MainForm.cs b/WindowsFormsApp6/MainForm.cs index 756b564..e5ccc0a 100644 --- a/WindowsFormsApp6/MainForm.cs +++ b/WindowsFormsApp6/MainForm.cs @@ -1936,6 +1936,7 @@ namespace WindowsFormsApp6 string operatorName = textBox6.Text.Trim(); string instrument = textBox4.Text.Trim(); string deviceNumber = textBox5.Text.Trim(); + string datafile = textBox8.Text.Trim(); string testTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); // 第一行信息 @@ -2027,7 +2028,7 @@ namespace WindowsFormsApp6 cell27.CellStyle = styles.dataStyle; ICell cell28 = infoRow2.CreateCell(9); - cell28.SetCellValue(""); + cell28.SetCellValue(string.IsNullOrEmpty(datafile) ? "" : datafile ); cell28.CellStyle = styles.yellowStyle; }