Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old January 11th, 2008, 08:35 AM
Registered User
Join Date: Jan 2008
Location: Lahore, Punjab, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to azharrahi
Default How to write data on ms excel

  Hello How are all here.
I am working on an ASP.Net project using Visual Studio 2005 (or ASP.Net 2.0)
Now I want to write data on ms excel such that the data must be retrieved from database and fill the dataset (or collection) and write that data over ms excel.
The two tables are returned with name 'LoadOut' And 'InspPipes'. I want when this data is returned, an ms excel file must be opened with two sheets, having the names as the table names respectively. Then the columns and rows of each table must be written on each sheet of ms excel file respectively.
Now I have used 'Response.write' method to write the data over ms excel sheet. The problem is that only one sheet could be active and be written. If I want to make the other sheet active, then how can I do that? also how can I give the name of each sheet with respect to the table names?

I know the other way of using Microsoft.Office.Interop.Excel. However if someone can help me regarding Response.write, then I would like to appreciate him/her.

Azhar Rahi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read data from Ms Excel 2007 senpark15 C# 2005 3 June 21st, 2008 03:35 AM
How can we import the data from Ms Excel balesh ASP.NET 1.0 and 1.1 Professional 1 June 8th, 2006 03:15 PM
Getting data from MS Excel to ASP. rupen Classic ASP Basics 4 August 12th, 2005 05:01 PM
Exporting data from MS Excel sheet to Ms Access ajindal General .NET 1 January 17th, 2005 03:00 AM

All times are GMT -4. The time now is 04:31 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.