Click here to Skip to main content
15,907,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am uploading an excel file and comparing its data with database(SQL server 2008)and showing the recods in gridview.on receiving duplicate rows i want to add comments in uploaded excel file and show it to user.

Thanks.
Posted

1 solution

Try the following:
Link1

Link2
 
Share this answer
 
Comments
cdacducat 8-Nov-12 1:58am    
I m writing this code for creating excel file.this is working fine.but i also need to add comments in excel file for duplicate rows.What can i do for that ? pls help !!

DataSet dsreport = new DataSet();
dsreport.Tables.Add(dtDuplicateRecord);
ExcelExport xObj = new ExcelExport(sFileName);
xObj.PopulateFromDataSet(dsreport);
xObj.SaveToFile();
dimpledevani 8-Nov-12 6:10am    
well i guess in that case you need to add the code again to those records and then merge them

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900