binarywrite? -- William Tasso - [url]http://WilliamTasso.com[/url] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => <3f368bce$0$321$ba620e4c@reader1.news.skynet.be> <3f369af9$0$877$ba620e4c@reader1.news.skynet.be> [htmlstate] => on_nl2br [postusername] => William Tasso [ip] => ngx@tbdata.com [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 4 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> Generated pdf preview issue - ASP

Generated pdf preview issue - ASP

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 ...

  1. #1

    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.


    Bert Van Aerschot Guest

  2. #2

    Default Re: Generated pdf preview issue

    Bert Van Aerschot wrote:
    > 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'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?

    > 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...
    >
    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 - [url]http://WilliamTasso.com[/url]


    William Tasso Guest

  3. #3

    Default Re: Generated pdf preview issue


    "William Tasso" <ngxtbdata.com> wrote in message
    news:e7zZPG3XDHA.1644TK2MSFTNGP10.phx.gbl...
    > Bert Van Aerschot wrote:
    > > 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'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
    > > 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...
    > >
    >
    > 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 ;-)
    > --
    > William Tasso - [url]http://WilliamTasso.com[/url]
    >
    Thx for your effort anyway


    Bert Van Aerschot Guest

  4. #4

    Default Re: Generated pdf preview issue

    Bert Van Aerschot wrote:
    > "William Tasso" <ngxtbdata.com> wrote in message
    > news:e7zZPG3XDHA.1644TK2MSFTNGP10.phx.gbl...
    >> Bert Van Aerschot wrote:
    >>> 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'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
    >
    and the source for the inline frame can be the asp that auto-gens the PDF-->
    binarywrite?

    --
    William Tasso - [url]http://WilliamTasso.com[/url]


    William Tasso Guest

Similar Threads

  1. Preview Issue
    By Scanman@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: September 6th, 10:24 PM
  2. Contribute generated pop-ups
    By Vartkes in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: October 20th, 07:22 AM
  3. Using xsd generated classes
    By Matt in forum ASP.NET Web Services
    Replies: 0
    Last Post: June 28th, 10:21 AM
  4. Replies: 0
    Last Post: March 7th, 11:43 PM
  5. Alter generated always to generated by default
    By Doug Schaible in forum IBM DB2
    Replies: 0
    Last Post: August 13th, 09:44 PM

Bookmarks

Posting Permissions

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