tags:

views:

53

answers:

1

Export to Excel from dataset with out using htmltextwriter

Hey, I'm having an issue occuring when I want to import data back into a table from a file. My export creates a file successfully as a .xls file. However, my contents for the file are being written as standard html table as seen below rather than the file content that normal excel files are saved in.

The issue I have now is this. I need to take this file along with whatever changes or additions that were made by an end user and upload it back to a table in SQL Server. The error I get is:

         External table is not in the expected format.
A: 

hi senthil,

check these links,

http://forums.asp.net/p/1197704/2076903.aspx#2076903

http://www.dotnetjohn.com/articles.aspx?articleid=36

http://www.codedigest.com/Articles/ASPNET/13_Export_dataset_to_Excel_with_XSLT_in_AspNet_20.aspx

if you got your answer make my answer correct and vote me.thanx

Emaad Ali
i am importing excel which was exported before,those files shows this error
senthil
check these linkshttp://forums.asp.net/t/1088515.aspxhttp://www.pcreview.co.uk/forums/thread-978196.phphttp://msforums.ph/forums/t/44669.aspxhttp://www.velocityreviews.com/forums/t84328-error-external-table-is-not-in-the-expected-format.htmlhttp://social.msdn.microsoft.com/forums/en-US/biztalkgeneral/thread/eec19e7d-95a7-49d9-9136-ee4291c77f0d/http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-scripting/333/External-table-is-not-in-the-expected-format
Emaad Ali
if you got your answer tick my answer and vote me.thanx
Emaad Ali