473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Excel Downloads

I want to provide the user with the ability to perform a search, fine-tune
the search results, and then download the results in Excel format.

The desired effect:

1- user enters search criteria into a web form and hits "Search"
2- a list of results appears below the search criteria (i.e. user can
make changes to search criteria and re-hit "Search")
3- the user is happy with his search results
4- user hits "Download" button
5- an Excel spreadsheet containing that same data is made available for
download

I need to perform all of this functionality from one single ASPX page. I
dont want have to duplicate the all the functionality for multiple pages.
Any ideas? Will multipart HTTP content help?

I have been sort of ineffective at explaining my question so please forgive
my similar postings.
Nov 17 '05 #1
1 1162
One of the simplest ways is to simply output HTML and save it with an XLS
extension. (Excel handles this situation very nicely.)

Here's information on the latest techniques involving Visual Studio Tools
for Office:
http://www.microsoft.com/office/prev...er/default.asp

If you can't use the latest bleeding edge Office interactivity, you can use
COM interop to communicate with Excel and do what you need to do.
Here's an example with ASP.OLD but it should still give you a rough idea:
http://www.serverwatch.com/tutorials...le.php/1493371
* Not very scalable

Or you might want to use a 3rd party tool to help out. Here are a couple:

SoftArtisans ExcelWriter:
http://excelwriter.softartisans.com/

Aspose.Excel
http://www.aspose.com

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire

"hunt n peck" <x> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I want to provide the user with the ability to perform a search, fine-tune
the search results, and then download the results in Excel format.

The desired effect:

1- user enters search criteria into a web form and hits "Search"
2- a list of results appears below the search criteria (i.e. user can
make changes to search criteria and re-hit "Search")
3- the user is happy with his search results
4- user hits "Download" button
5- an Excel spreadsheet containing that same data is made available for
download

I need to perform all of this functionality from one single ASPX page. I
dont want have to duplicate the all the functionality for multiple pages.
Any ideas? Will multipart HTTP content help?

I have been sort of ineffective at explaining my question so please forgive my similar postings.

Nov 17 '05 #2

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

Similar topics

9
by: jillandgordon | last post by:
I am trying to import an excel file into Access 97. It looks perfectly all right but, every time I try to import it, I get to the lst step and am told that it was not imported due to an error. ...
0
by: Winshent | last post by:
this code opens the workbook.. either protects or unprotects a sheet.. then saves.. so can write to it.. it unprotects then saves fine.. then writes to it no prob.. it resets the password...
3
by: Jim Wyse | last post by:
I'm trying to use VB.NET to control Excel and Access, but finding it very slow going. I've just downloaded an Excel sample project from...
5
by: Chase Kang #52 | last post by:
Using VB.NET, I've created a report that takes data from a stored procedure, which goes into some aspx page controls, and inserts that data into a pre-formatted Excel spreadsheet template by using...
4
by: =?Utf-8?B?QnJpYW5ESA==?= | last post by:
Hi Does anyone know of a way (via code behind) to pull a single sheet out of a Excel workbook and convert it to a stand alone html document? Thanks Brian
4
by: Rahul | last post by:
I want to create an excel file for report in asp.net 2.0 ... without having office installed on the server. Rahul
11
by: Andy Burchill | last post by:
Hi there, I am trying to find out what the best way of creating an excel spreadsheet is, this will need to be done dynamically by an aspx website on the server side. The main way would be to...
9
by: M K | last post by:
I would like to write code to export to excel, outlook and word. Any idea where a good resource to look? I know about using the VBA macros as I have done that in lotus notes ( but that is VB to...
3
by: =?Utf-8?B?TmV3YnJv?= | last post by:
Here's the long story short. At work we have to real-time generate a report(excel format) which involves a number of table joining. So to export into excel contentType 'application/vnd.ms-excel'...
1
by: Cupric | last post by:
I have a python script that runs fine from the command line or from within IDLE, but doesn't work through the Vista Task Scheduler. The script downloads some csv files and then uses pywin32 to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.