From 61455943905669c72f2c62acbe3ae77aac74e019 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 13 Jan 2023 07:52:16 +0300 Subject: Delete extension name from Name property of Price list --- src/Models/SourcePriceList.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Models/SourcePriceList.cs') diff --git a/src/Models/SourcePriceList.cs b/src/Models/SourcePriceList.cs index ed860b4..1e47759 100644 --- a/src/Models/SourcePriceList.cs +++ b/src/Models/SourcePriceList.cs @@ -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[] { -- cgit v1.2.3