Hi,
I am writing a webAPI Core that export data to word and excel. I got two questions that I hope someone can help me.
In my Export To Word,
The old code is using System.Web.UI.WebControls.GridView to draw gridview from the UI table control.
In core, the GridView() is throwing and error and does not exist in the core libraries.
Is there an core equivalent?
In the export to Excel, I am getting an error when returning the following File object
return File(stream, "application/octet-stream", "MyFile - " + DateTime.now.ToString() + ".xlsx");
I get an error On File that it does not exist on this current context.
I tried the System.IO.File but that is not the correct namespace.
Any help is appreciated. Thanks