Delete extension name from Name property of Price list
This commit is contained in:
parent
1970739306
commit
6145594390
@ -2,6 +2,7 @@
|
|||||||
using Microsoft.Office.Interop.Excel;
|
using Microsoft.Office.Interop.Excel;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace RhSolutions.Models
|
namespace RhSolutions.Models
|
||||||
@ -18,7 +19,7 @@ namespace RhSolutions.Models
|
|||||||
}
|
}
|
||||||
|
|
||||||
Sheet = workbook.ActiveSheet;
|
Sheet = workbook.ActiveSheet;
|
||||||
Name = workbook.Name;
|
Name = Path.GetFileNameWithoutExtension(workbook.FullName);
|
||||||
|
|
||||||
Range[] cells = new[]
|
Range[] cells = new[]
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using Microsoft.Office.Interop.Excel;
|
using Microsoft.Office.Interop.Excel;
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace RhSolutions.Models
|
namespace RhSolutions.Models
|
||||||
@ -17,7 +18,7 @@ namespace RhSolutions.Models
|
|||||||
}
|
}
|
||||||
|
|
||||||
Sheet = workbook.ActiveSheet;
|
Sheet = workbook.ActiveSheet;
|
||||||
Name = workbook.FullName;
|
Name = Path.GetFileNameWithoutExtension(workbook.FullName);
|
||||||
|
|
||||||
Range[] cells = new[]
|
Range[] cells = new[]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user