Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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
  #1 (permalink)  
Old June 9th, 2004, 09:14 AM
Registered User
Join Date: Jun 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Issue of downloading Excel file(resent)

Hi there,
I have an asp program that generate Excel file it works on my local machine. But when It is deployed to web server(IIS 5) and if excel file is big, the IE could not download it. For a small file it is all right. I changed server.scripttime into 900 seconds, but it does not work yet. By the way I use HTTPS. Any one who knows how to fix it please help. Thanks a lot.
The following code is example of my ASP file.

<%@ Language=VBScript %>

    Rs.Open strSQL, cnString

    if not rs.EOF then
        Response.Write("<table border=1 align=center cellSpacing=0 > ")
        'Display details of the records in the current page
            Response.Write(" <tr> ")

            for i=0 to fldsNum-1
                Response.Write("<td>"&Rs.Fields.Item(i).Name&" </td>")
            Response.Write(" </tr> ")
        while not rs.EOF
            Response.Write(" <tr> ")

            for i=0 to fldsNum-1
                Response.Write("<td nowrap>"&Rs.Fields.Item(i).Value&" </td>")
            Response.Write(" </tr> ")
        Response.Write(" </table><BR> ")
        Response.Write("<p> Records found: "&jj&"</P><BR><BR>")
        Response.Write("No records are found in this search!")
    end if
    set rs=nothing

  #2 (permalink)  
Old June 9th, 2004, 10:31 PM
Friend of Wrox
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post


Where do you get your data from? Can you post your strSQL and cnString values here?

-Vijay G
Strive for Perfection
  #3 (permalink)  
Old June 10th, 2004, 05:28 PM
Friend of Wrox
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post

This may be a cross post of http://p2p.wrox.com/topic.asp?TOPIC_ID=14662
  #4 (permalink)  
Old June 15th, 2004, 11:10 AM
Authorized User
Join Date: Jun 2003
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to nlicata

excel has a record limitation of 65000 records.... Also in my experience creating xls files from web, from time to time the users browser cache had to be cleared or it messed with old xls files in tmps... Maybe no help, but limiting excel output to 65,000 or less (actually 65,536 or something close) and clearing there temp internet files always solves my excel issues...

sorry if not much help..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue after downloading file in ASP.NET page subhasps8 SharePoint Development 0 December 24th, 2007 08:07 AM
Downloading Excel File hugh@kmcnetwork.com VB How-To 0 October 28th, 2004 11:40 AM
Issue of downloading Excel file(resent) zuolinbai Classic ASP Basics 1 June 10th, 2004 05:24 PM
Issue of downloading Excel file zuolinbai Classic ASP Professional 1 June 7th, 2004 05:50 PM
.csv file saved with Excel, issue with date forma pitophe Excel VBA 0 March 25th, 2004 07:14 PM

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