Export Excel File Title
Hello there. Please help. I'm trying to export an excel file but I can not find a way to change the default name in c#. Is to easy with pdf files with Title prop but with excel object i can't.
This discussion has been closed.
Hello there. Please help. I'm trying to export an excel file but I can not find a way to change the default name in c#. Is to easy with pdf files with Title prop but with excel object i can't.
Comments
FastReport.Web.WebReport wr = new FastReport.Web.WebReport();
string frx = Path.Combine(_env.ContentRootPath, "reports", value.file);
wr.Report.Load(frx);
wr.Report.FileName = value.label;
wr.Report.RegisterData(data1, "NorthWind");
demo => http://fr.somee.com/demo
Hello!
File name on disk / when exported from the controller: specified by the path string in `report.Export(excelExport, “MyReportTitle.xlsx”)` or as the third argument of `File(stream, ..., “MyReportTitle.xlsx”)`
The tab/worksheet name within Excel: is taken from the Name (or Title) of the Page1 report page in the .frx file.