The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Maybe I'm just missing something, but I haven't been able to find a way to save an Excel file to a folder on the server. using the Workbook.SaveAs method seems to give me the ability to either open the workbook in the browser, or prompt the user to download the file. Those work fine for me.
What I need now is some other way to save the file to a folder on the server without any prompt. I'm planning to compress the file before letting the user download it, so I need an actual file to pass into the zip routine. Is there some way to do that?
GMGeetha M Syncfusion Team October 3, 2008 10:52 AM UTC
Hi Kristopher,
You can save the file in the server as below: workbook.SaveAs(Server.MapPath("Sample.xls"))
But please make sure that if you save the file in a different folder, then you need set permission in order to access it from the client. You can then compress the files and use Page.Response or another aspx page to stream the output to the client.