Michele: modifica path destinazione excel

This commit is contained in:
michele 2024-01-03 12:56:57 +01:00
parent 1ea0a66479
commit 0c89e3f7be
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ using ClosedXML.Excel;
//using DocumentFormat.OpenXml.Spreadsheet;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.Office.Interop.Excel;
using Newtonsoft.Json;
using System.Diagnostics;
using VirtualTask.Models;
@ -184,7 +185,9 @@ namespace VirtualTask.Controllers
var dateFile = anno + mese + giorno + ore + minuti + secondi;
workbook.SaveAs($"C:\\Users\\utente\\Desktop\\ExcelVT\\buoni_{dateFile}.xlsx");
//workbook.SaveAs($"C:\\Users\\utente\\Desktop\\ExcelVT\\buoni_{dateFile}.xlsx");
workbook.SaveAs($"..\\..\\BuoniVT\\buoni_{dateFile}.xlsx");
return RedirectToAction("Index");
}

View File

@ -27,6 +27,7 @@
<div style="float:left;width:2%;">&nbsp;</div>
</div>
}
<br>
<br>
<br>