I have an excel file with some template. I am given a requirement that the template can change.
So what I want to know is there any way I can read the template of that Excel file as it is and display that excel file excel sheet exactly to a GridView control in my webpage.
I want to read all the styles format basically. so that I can display it as it is in my GridView and ask my user to update in that gridview. So that later point I can save that GridView data in my database.
Thank you in advance.
How to read excel template from an excel file?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

shashi reddy139 reputationPosted Mar 8, 2011, 12:39 AM EST
XmlDataDocument xmlDatadoc = new XmlDataDocument();
xmlDatadoc.DataSet.ReadXml("C:\\books.xml");
Suthish NairRank #92 · 22.8K reputationPosted Mar 8, 2011, 12:57 AM EST
Raja KrishnamurthyRank #3,615 · 403 reputationPosted Mar 8, 2011, 2:42 AM EST
Please check out the link given below.
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/b6e8a28c-6760-4e86-a1aa-e2ce9ec36380/
The answer given there could be a good start.
HTH.
Happy Programming!!!
Regards,
Raja