Hi,
w.r.t your 1st question, use the fso for creating a
folder where the pdf can be stored. The way you will
be creating the folder, in the same way you can delete
the folder plus the files. The code should look
something like this:
<code>
Dim fso
Dim File
Dim FileSys
                                
Set fso = Server.CreateObject
("Scripting.FileSystemObject")

dim var
var = URL
Session("URL") = URL
File = Server.MapPath(var)
Set FileSys = fso.CreateTextFile(File,true)

</code>

pass the URL, or the folder name plus the file name to
be created in the var URL.

Use DeleteTextFile to delete the folder and files.

HTH,
Parul

  Question 1:
  I have a bunch of forms when a user submits it
creates a pdf of the form. I was wondering if it is
possible to create a temp folder of some kind on a
2003 server that will house these temporary pdfs so
that when the user closes the session with the server
this temp folder with (lets 6 or 7 pdf in it) would be
deleted from the server?

  Question 2:

  Will the pdf be able to overwrite them selves if the
user changes data on the on the page that gives them
the submitted results when they re submit the changed
form. The pdf's are named from one of the fields that
are mandatory on the forms. If that field is changed
the the pdf would be renamed and overwrite would not
be an issue.

  example scenario:

  there's a form with :
  Firstname: = Joe
  Lastname: = Jojomojo
  username: = pdfmisery
  password: = pdfisconfusing
  account number: =  1234


  user submits this form
  the pdf is called 1234.pdf and saved to temp folder.
 
  this form shows user what he submitted


  Firstname: = Joe
  Lastname: = Jojomojo
  username: = pdfmisery
  password: = pdfisconfusing
  account number: =  1234

  user changes Firstname to Joey

  Firstname: = Joey
  Lastname: = Jojomojo
  username: = pdfmisery
  password: = pdfisconfusing
  account number: =  1234

  user re submits form
  database is updated
  pdf is overwriten(as 1234.pdf) and saved to temp
folder with new info in it so the user can download
it.

  user closes browser
  in five minutes of no actions with server the server
ends the session and destroys the temp folder with
those pdf's inside. Is this possible and if so could
someone post some sample code to create the folder and
destroy it. Any help would be greatly appreciated. And
thanks in advance for eventaking the time out of your
day to even read this.(If possible I would like the
global.asa to be doing this)

  [Non-text portions of this message have been
removed]



------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
   
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
      
    b.. To unsubscribe from this group, send an email
to:
   
[EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the
Yahoo! Terms of Service. 




[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor  ADVERTISEMENT
 

---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
 

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. 
http://yahoo.shaadi.com/india-matrimony/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to