fixed excel file being created one parent dir up
This commit is contained in:
parent
153213a93e
commit
899ff17ee4
@ -19,7 +19,8 @@ public class ExcelDataService : IDataService
|
|||||||
{
|
{
|
||||||
_dateTime = DateTime.Now.ToString("yyyyMMdd");
|
_dateTime = DateTime.Now.ToString("yyyyMMdd");
|
||||||
_fileName = $"CommitReport-{_dateTime}.xlsx";
|
_fileName = $"CommitReport-{_dateTime}.xlsx";
|
||||||
_pathName = Directory.GetCurrentDirectory() + _fileName;
|
_pathName = Directory.GetCurrentDirectory() + "/" + _fileName;
|
||||||
|
System.Console.WriteLine(_pathName);
|
||||||
_xlsxFile = SpreadsheetDocument.Create(_pathName, SpreadsheetDocumentType.Workbook);
|
_xlsxFile = SpreadsheetDocument.Create(_pathName, SpreadsheetDocumentType.Workbook);
|
||||||
_xlsxWorkbookPart = _xlsxFile.AddWorkbookPart();
|
_xlsxWorkbookPart = _xlsxFile.AddWorkbookPart();
|
||||||
_xlsxWorkbookPart.Workbook = new Workbook();
|
_xlsxWorkbookPart.Workbook = new Workbook();
|
||||||
|
Loading…
Reference in New Issue
Block a user