473,508 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

export data to excel creating multiple worksheets

hal
Hello all,

I've been searching all day for an article or tutorial on how to get
data from a SQL Server 2000 database and export the data to excel 2003
so that multiple worksheets are created, and information is displayed
in these worksheets. Data will be coming from multiple tables, and
I'm using C# and asp.net 2.0. User will click on an asp.net button to
pull the data and put it in an excel spreadsheet.

Thanks

Mar 26 '07 #1
2 5543
"hal" <hl*****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
I've been searching all day for an article or tutorial on how to get
data from a SQL Server 2000 database and export the data to excel 2003
so that multiple worksheets are created, and information is displayed
in these worksheets. Data will be coming from multiple tables, and
I'm using C# and asp.net 2.0. User will click on an asp.net button to
pull the data and put it in an excel spreadsheet.
Two ways:

1) Use the XML file format:
http://www.microsoft.com/downloads/d...displaylang=en
This is completely free, but most definitely not for the faint-hearted...

2) Use Aspose:
http://www.aspose.com/Products/Aspos...s/Default.aspx
This is not free, but is extremely simple to use

Don't even think about server-side Office automation - there's a good chance
it won't work, and Microsoft don't support it:
http://support.microsoft.com/default...US;q257757#kb2
Mar 26 '07 #2
Here are some 3rd party products that should be able to do the trick for
you:
http://SteveOrr.net/reviews/AsposeExcel.aspx
http://SteveOrr.net/reviews/OfficeWriter.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"hal" <hl*****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
Hello all,

I've been searching all day for an article or tutorial on how to get
data from a SQL Server 2000 database and export the data to excel 2003
so that multiple worksheets are created, and information is displayed
in these worksheets. Data will be coming from multiple tables, and
I'm using C# and asp.net 2.0. User will click on an asp.net button to
pull the data and put it in an excel spreadsheet.

Thanks
Mar 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3390
by: Anthony Cuttitta Jr. | last post by:
I'm working on some procedures where Access queries are exported to Excel, and then later on, those same workbooks are openned, and I need to target a specific original sheet. Sometimes there will...
4
18231
by: sunilkeswani | last post by:
I need help with exporting data from 2 access tables, into 2 existing spreadsheets in a single Excel file. Currently, I am using this code: DoCmd.TransferSpreadsheet acExport, 8, "Table1",...
0
1158
by: Nik | last post by:
I have a VB.NET Web application. I have to export data from SQL Server to excel. I have 3 Select statements and the results need to go in 3 separate worksheets and the column headers of the sheets...
6
18561
by: Sam Johnson | last post by:
HI I tried to send the following SQL string to an open databse, to export a table into excel format: g.Connection = conn 'valid OleDBConnection and Command objects g.CommandText = "SELECT *...
6
4046
by: Elena | last post by:
I'm trying to export data to an Excel worksheet. I can export the data in the cell values perfectly. I need the code to change a header and footer for the worksheet, not for the columns. Is...
4
8697
by: paul.chae | last post by:
I have a table in Access with about 3000 records. There are ~60 unique values in the ID field for the 3000 records. What I would like to do is automatically generate multiple Excel worksheets...
0
2415
by: Tony2299 | last post by:
How to export data using ASP to excel workbook (with multiple worksheets)? I created an excel workbook with 5 worksheets and each one has a name range. Using asp I insert data to individual...
7
7779
by: Vanessa | last post by:
hi Everyone, I have two questions on exporting data to Excel using ASP (w/o converting formatted excel file into web page and then plug in the dynamic data): 1. Can we export data into...
1
6664
by: DennisBetten | last post by:
First of all, I need to give some credit to Mahesh Chand for providing me with an excellent basis to export data to excel. What does this code do: As the title says, this code is capable of...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.