Export DataGridView data to excel
In my application I'm exporting DataGridView data to excel sheet now I want to pass the combobox and textbox selected values to excel sheet and I have to give title to my excel sheet as Report for my windows application how can I do that? Can anyone help me on this? I have code for exporting datagridview data to excel: private void btnexcel_Click(object sender, EventArgs e) { Excel.Application xlApp; Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; object misValue = System.Reflection.Missing.Value; xlApp = new Excel.ApplicationClass(); xlWorkBook = xlApp.Workbooks.Add(misValue); xlWorkS
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.