Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:31 AM
Bert Van Aerschot
Guest
 
Posts: n/a
Default Generated pdf preview issue

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.


  #2  
Old July 19th, 2005, 07:31 AM
William Tasso
Guest
 
Posts: n/a
Default Re: Generated pdf preview issue

Bert Van Aerschot wrote:[color=blue]
> 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.[/color]

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?

[color=blue]
> 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...
>[/color]

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?

--
William Tasso - http://WilliamTasso.com


  #3  
Old July 19th, 2005, 07:31 AM
Bert Van Aerschot
Guest
 
Posts: n/a
Default Re: Generated pdf preview issue


"William Tasso" <ngx@tbdata.com> wrote in message
news:e7zZPG3XDHA.1644@TK2MSFTNGP10.phx.gbl...[color=blue]
> Bert Van Aerschot wrote:[color=green]
> > 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.[/color]
>
> 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[/color]
of[color=blue]
> saving it to disk?[/color]

actually you can, but I (actually my boss ;-) wants it in an inline frame in
a regular page
[color=blue][color=green]
> > 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...
> >[/color]
>
> 1 to n is always tricky. if n is too small it gets over-written too[/color]
quick.[color=blue]
> if n is too large the result hangs around for too long. have you[/color]
considered[color=blue]
> using the session id?[/color]

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 ;-)
[color=blue]
> --
> William Tasso - http://WilliamTasso.com
>[/color]

Thx for your effort anyway


  #4  
Old July 19th, 2005, 07:31 AM
William Tasso
Guest
 
Posts: n/a
Default Re: Generated pdf preview issue

Bert Van Aerschot wrote:[color=blue]
> "William Tasso" <ngx@tbdata.com> wrote in message
> news:e7zZPG3XDHA.1644@TK2MSFTNGP10.phx.gbl...[color=green]
>> Bert Van Aerschot wrote:[color=darkred]
>>> 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.[/color]
>>
>> 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?[/color]
>
> actually you can, but I (actually my boss ;-) wants it in an inline
> frame in a regular page
>[/color]

and the source for the inline frame can be the asp that auto-gens the PDF-->
binarywrite?

--
William Tasso - http://WilliamTasso.com


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles