Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.
Thanks

Azhar Rahi




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.