Is there any alternative method or supported property for "GridTableView.ExportToWord()" method so that we can write out the file to the provided stream rather than directly streaming it back to the user via the HTTP response.
1 Answer, 1 is accepted
answered on 22 Jun 2021, 08:56 AM
By default, the Export functionalities return the file to download. If you would like to save the content to a file, then you can access the output in the OnGridExporting event, save it to the disk and end the Response.
Here is a Knowledge Base article that gets the HTML-based Word content, converts it to DOCX then returns the file to the Response: xport HTML content into Docx.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.