Delete extension name from Name property of Price list

This commit is contained in:
Sergey Chebotar 2023-01-13 07:52:16 +03:00
parent 1970739306
commit 6145594390
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
using Microsoft.Office.Interop.Excel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace RhSolutions.Models
@ -18,7 +19,7 @@ namespace RhSolutions.Models
}
Sheet = workbook.ActiveSheet;
Name = workbook.Name;
Name = Path.GetFileNameWithoutExtension(workbook.FullName);
Range[] cells = new[]
{

View File

@ -1,5 +1,6 @@
using Microsoft.Office.Interop.Excel;
using System;
using System.IO;
using System.Linq;
namespace RhSolutions.Models
@ -17,7 +18,7 @@ namespace RhSolutions.Models
}
Sheet = workbook.ActiveSheet;
Name = workbook.FullName;
Name = Path.GetFileNameWithoutExtension(workbook.FullName);
Range[] cells = new[]
{