|
-
Jan 20th, 2003, 04:07 PM
#1
Thread Starter
Fanatic Member
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
%>
-
Jan 20th, 2003, 04:16 PM
#2
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.....
-
Jan 20th, 2003, 04:25 PM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|