Browse Source

处理bug-导出采集信息功能失效

cxs 3 years ago
parent
commit
3d87fe5e23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/OTSImageData.cs

+ 1 - 1
OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/OTSImageData.cs

@@ -236,7 +236,7 @@ namespace OTSMeasureApp
             m_xe.Create();
             Microsoft.Office.Interop.Excel.Worksheet ws = m_xe.GetSheet("Sheet1");
             m_xe.m_ws = ws;
-            string str_ExcelFilePath = a_filePath + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls";
+            string str_ExcelFilePath = a_filePath + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx";
             m_xe.m_ws.Shapes.AddPicture(a_ImgFilePath[0], Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, 0, 0, 400, 300);
             m_xe.m_ws.Shapes.AddPicture(a_ImgFilePath[1], Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, 0, 320, 400, 100);
             if (str_ExcelFilePath.IndexOf(":") < 0)