New Forum | Previous | Next | (P-PDF) Developers
Topic: Re: No Topic (but should be: embedding PDF files in an ASP)
Conf: (P-PDF) Developers, Msg: 57833
Date: 5/29/2002 05:28 PM
The ASP as written, looks like it starts to load Reader plugin, but goes
right on by, not displaying any PDF, so I end up with a blank page and the
name of the file(s)(Netscape 5.0 ) or blank squares where the PDF(s) should
be and the name of the file(s)(IE5).
My thought is that the ASP should transfer control over to HTML or 'pause'
in some way so the ASP will display the PDF before it 'moves on' to other
things as it does now.
> From: "Lopes, Allen (A.)"
> I think you are displaying all PDF files in a page, but
> I dont quite understand your intention behind "pausing" inside the loop.
> from the server-side (ASP) ?
> The entire ASP code on the page has to and will complete
> before it hands over control to the client. ASP language as such does
> not support any SLEEP or PAUSE command.
> Allen - here is the code:
> If Session("blnViewRoster") Then 'IF THE CHOICE WAS MADE TO VIEW
> 'Show PDF Files
> strDisplay = ""
> strFiles = Session("FileList") & WalkinFileLoc & ","
> Do While True = True 'STAY IN LOOP UNTIL KICKED OUT AS NOTED BELOW
> intCommPos = InStr(1, strFiles, ",", 1)
> If intCommPos = 0 Then Exit Do
> strPathName = Left(strFiles, intCommPos-1) 'GET FILE NAME
> strFileName = Right(strPathName,
> 'GET THE FILENAME TO DISPLAY
> ' ******
> strDisplay = strDisplay & strFileName &
> ' *******
> strFiles = Right(strFiles, Len(strFiles)-intCommPos) 'PREPARE FOR NEXT
> Response.Write strDisplay
> David Lock
> Zapp Systems
> From: "David"
> ------ AcroBuddies Forum | http://www.acrobuddies.com ------
> I need to display a PDF from within an ASP loop. It seems to me that I
> to put a "pause" mechanism within the loop to keep the ASP from moving on.
> Any ideas?
> Thank you
> David Lock