Wrox Programmer Forums
|
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 October 22nd, 2004, 10:21 PM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Html to Excel problem


I have 2 hyperlinks. On the click of first hyperlink, ExcelReport.aspx is
executed which contains the code:
> Response.ContentType = "application/vnd.ms-excel"
> Response.AddHeader("content-disposition", "attachment; filename=Report.xls")
After this code, i write all the response.write statements that generates the html table. The Excel Report is saved perfectly. The page does not output anything on the screen. No problem till here!

Now when i click on the second link, Report2.aspx is called which contains code to generate the second html table and output it on the screen. In debug mode, every line of code is executed. But the screen is blank. The new html table is not displayed.

Someone please help! Am depressed with this problem!!!!

Regards,
Spacy


 
Old October 23rd, 2004, 05:10 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found that this problem of the new report not getting displayed after the first report is saved in excel, happens on only certain machines. It does not work on the web server, whereas works perfectly on certain clients !!!! Anyone who knows why??????

Thanks in advance.

Regards,
Spacy






Similar Threads
Thread Thread Starter Forum Replies Last Post
Export HTML to Excel dbellavi C# 2005 3 December 19th, 2007 08:48 AM
Open Excel Sheet in HTML pankajm HTML Code Clinic 1 January 3rd, 2006 04:18 PM
Export HTML graph to Excel Jorge Classic ASP Basics 8 February 10th, 2005 01:54 PM
Excel to HTML spacy ASP.NET 1.x and 2.0 Application Design 2 January 31st, 2005 12:26 AM
html page save to excel format mateenmohd Javascript 2 January 17th, 2004 05:48 AM





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