Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
| FAQ | Members List | 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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #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 %>
<%response.ContentType="application/vnd.ms-excel"%>
<html>
<head>
<body>
<%

    Rs.Open strSQL, cnString

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

            for i=0 to fldsNum-1
                Response.Write("<td>"&Rs.Fields.Item(i).Name&" </td>")
            next
            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>")
            next
            Response.Write(" </tr> ")
            Rs.MoveNext()
            jj=jj+1
        wend
        Response.Write(" </table><BR> ")
        Response.Write("<p> Records found: "&jj&"</P><BR><BR>")
    else
        Response.Write("No records are found in this search!")
    end if
    rs.Close
    set rs=nothing
%>
</body>
</html>


Reply With Quote
  #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
Default

Hi,

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

_________________________
-Vijay G
Strive for Perfection
Reply With Quote
  #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
Default

This may be a cross post of http://p2p.wrox.com/topic.asp?TOPIC_ID=14662
Reply With Quote
  #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
Default

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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 04:02 PM.


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