in this moment I am generating a excel file from cshtml view in .netCore of the following way:
HttpContext.JsReportFeature().Recipe(Recipe.HtmlToXlsx);
return View(entityAffiliateByEmployer);
But I need what the excel file has a password, I don't know to do that, please helpme.