Generated pdf preview issue

B

Bert Van Aerschot

Hi all,

I have to make a page with an inline frame, in this frame will come a
dynamic generated PDF.
The PDF will have to be stored on the server to load in the preview frame
but after the user had loaded the pdf in his browser I want it removed.

Any suggestions how to do this are very welcome.

I thougt maybe I could use a General variable defined in global.asa that
counts from 1 to 100 or something and every time a pdf is generated the
number = number + 1 so I can create a pdf with the name ' filename & number
& ".pdf" ' so that there would be constantly 100 pdf's on the server but not
more and there is no danger of mixing up the preview which users get to see
because it takes a while before their number is used again / their pdf is
overwritten...

Please correct me if I'm wrong.

kind regards.

b.
 
B

Bert Van Aerschot

William Tasso said:
I'm not familiar with dynamic PDFs but I assume it's just a call. Can you
send the result straight to the browser with response.binarywrite instead of
saving it to disk?

actually you can, but I (actually my boss ;-) wants it in an inline frame in
a regular page
1 to n is always tricky. if n is too small it gets over-written too quick.
if n is too large the result hangs around for too long. have you considered
using the session id?

I don't see how this could solve my problem ?
Basically it comes down to this :
I generate a file put it on my HD send it to a website visitor in an inline
frame and then I don't need the file anymore... and I want it cleaned up
(or overwritten as I suggested myself ;-)

Thx for your effort anyway
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top