Net; using System. Http; using System. Web; using System. InputStream; if Inputfile! EndsWith ". AsDataSet ; reader. Close ; if dsexcelRecords! ToInt32 dtStudentRecords. Rows[i][0] ; objStudent. ToString dtStudentRecords. Rows[i][1] ; objStudent.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. A conversation about how to enable high-velocity DevOps culture at your Podcast An oral history of Stack Overflow — told by its founding team.
Featured on Meta. New responsive Activity page. Visit chat. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Seher Acar Seher Acar 11 1 1 bronze badge. Excel; Excel. SaveAs tempPathExcelFile, workbook. FullName; workbook. Write excelBase64String ; excelWriter. Flush ; stream. Add "x-filename", "ExcelReport. Neena Dadhwal Neena Dadhwal 11 1 1 bronze badge.
NetCore you can simply Return type as File. ConvertAsStream ms ; ms. LogError e. Karunakaran Karunakaran 5 5 silver badges 13 13 bronze badges. Robert Robert 4, 9 9 gold badges 41 41 silver badges 87 87 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. How to execute the attached source code Please go through this section if you want to practice this article with the attached project.
I have attached only required files with the actual folder structure due to the size of the project. View All. NET Core Training x. Ravi Kiran Chanduri Updated date Nov 18,
0コメント