Exporting datasets into multiple excel sheets of one excel file
问题 I need to export two dataset's values in two excel sheets of the same workbook. My Query is like: //Dataset One: DataSet ds1 = new DataSet(); SqlCommand commandOpen = new SqlCommand("storedproc1", conSql); commandOpen.CommandType = CommandType.StoredProcedure; var adaptOpen = new SqlDataAdapter(); adaptOpen.SelectCommand = commandOpen; adaptOpen.Fill(ds1, "table"); //Dataset Two: DataSet ds2 = new DataSet(); SqlCommand commandOpen = new SqlCommand("storedproc2", conSql); commandOpen