I have a DataSet with 3 named DataTables. What is the fastest way to
create a new workbook and spit each DataTable to a new worksheet?

Thanks.

Re: Raw Excel Export? by Sahil

Sahil
Wed Sep 29 14:28:12 CDT 2004

You need ..
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=39d229cd-6e8d-4dc7-9431-b4627d606b70


- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik


"localhost" <primpilus@cohort.ces> wrote in message
news:ap0ml0d41imgfj3ip3nnkisqvd8uhq0upr@4ax.com...
> I have a DataSet with 3 named DataTables. What is the fastest way to
> create a new workbook and spit each DataTable to a new worksheet?
>
> Thanks.
>



Re: Raw Excel Export? by localhost

localhost
Wed Sep 29 15:05:43 CDT 2004


Thanks, but that is not exactly what I am looking for.

I am not doing an ASP.NET project. I am working inside a console
application. I have some code that pulls data from MSSQL into a
DataSet. Now I need to blast that data into an Excel file. I have
used the Jet driver in the past to read from Excel, but not to write.

Help.


Thanks.




On Wed, 29 Sep 2004 15:28:12 -0400, "Sahil Malik"
<contactmethrumyblog@nospam.com> wrote:

>You need ..
>http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=39d229cd-6e8d-4dc7-9431-b4627d606b70
>
>
>- Sahil Malik
>You can reach me thru my blog at
>http://www.dotnetjunkies.com/weblog/sahilmalik
>
>
>"localhost" <primpilus@cohort.ces> wrote in message
>news:ap0ml0d41imgfj3ip3nnkisqvd8uhq0upr@4ax.com...
>> I have a DataSet with 3 named DataTables. What is the fastest way to
>> create a new workbook and spit each DataTable to a new worksheet?
>>
>> Thanks.
>>
>


Re: Raw Excel Export? by v-kevy

v-kevy
Wed Sep 29 20:41:53 CDT 2004

Hi localhost,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to export data in three tables
of the DataSet to Excel worksheet. If there is any misunderstanding, please
feel free to let me know.

I think we can do this by copying all data to a new DataSet and update that
to the database. Since Excel is a little different from other databases,
here are some KB articles about how to achieve this.

http://support.microsoft.com/?id=316934
http://support.microsoft.com/default.aspx?kbid=306023

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."