Ciao a tutti...
ho un problema...scrivo su un file xls i dati di una vista e fin qui tutto ok...il problema è che la vista può raggiungere dimensioni notevoli (fino a 2000 righe) e quando ciò succede il browser si impalla e non scrive sul file..non lo scarica nemmeno...

come faccio a velocizzare o aggirare il problema??
ecco il codice...dalla lista elimino una colonna..

  • <%
    '##BD_BEGIN
    '

    ' Visualizza tramite il plug-in Excel una lista pronta per essere esportata
    ' su file.
    '



    '##BD_END
    %>

    <%
    Server.ScriptTimeout = 600

    Response.ContentType = "application/ms-excel"
    Response.AddHeader "Content-Disposition", "inline;filename=ExportLista.xls"

    if Request.QueryString( "DaRecorset" ) = 0 then

    Response.Write Session( "ExportLista" )

    else

    Dim rs, f, strOut

    Set rs = Session( "rsLista" )
    rs.MoveFirst


    for each f in rs.fields

    if trim(f.name <> "DATA_ATTIVAZIONE") then

    strOut = strOut & f.name & chr(09)

    end if

    next

    strOut = strOut & chr(13) & chr(10)

    while not rs.EOF
    for each f in rs.fields

    if trim(f.name <> "DATA_ATTIVAZIONE") then
    strOut = strOut & f.value & chr(09)
    end if
    next
    strOut = strOut & chr(13) & chr(10)

    rs.MoveNext

    wend

    Response.Write strOut

    end if

    Response.End
    %>