fixed excel file being created one parent dir up

This commit is contained in:
Wyatt J. Miller 2022-07-31 19:49:46 -04:00
parent 153213a93e
commit 899ff17ee4

View File

@ -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();