Results 1 to 3 of 3

Thread: script does not execute

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779

    script does not execute

    I'm trying to run a dll in vbscript and then do a response.redirect. The length of the dll processing time can sometimes reach 15 minutes. The dll works fine. My problem is when the processing time for the dll is over a couple minutes my If statement won't execute. Do you think it is because the script is timing out? I don't get any error messages the page just hangs. Here is my code:

    <%
    Set rpt = Server.CreateObject("WebExport.ExportEngine")
    sReportName = report
    sReportFolder = folder
    sDestFolder = "C:\Web Site\Upload\Temp"
    sLogFileSpec = folder & "log.log"
    rpt.Params(clientid) = 1
    x = rpt.ExportReport(sReportName, sReportFolder, sDestFolder, sLogFileSpec)

    If x = True Then
    sFile = rpt.ExportFileName
    Response.Redirect "http://xxx.xxx.xxx.xx/Upload/test.asp"
    ElseIf x = False Then
    errdesc = rpt.ErrorDescription
    errsrc = rpt.ErrorSource
    description = "Error Source: " & errsrc & vbcrlf & "Description: " & errdesc
    End If
    %>

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Your If statement isn't executing because it's still waiting for your DLL to finish. The script itself proly isn't timing out..... it just needs to wait until the DLL is completed.
    Don't really have a suggestion though.....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    The dll always finishes excuting. What the dll does is create a pdf file. The dll takes about five minutes to create the pdf. I know the dll finishes because the pdf is always created. Is there a way to put a delay in the script?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width