PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

Thanks Pete for comment,
I generate this file in a temporary location on the server, but the problem
is when you click to save this file, it uses the query string as default
file name, in which this query string was passed to this asp page to calls
this pdf file over the web.

At the moment I decided to use:

Response.AddHeader "Content-Disposition", "attachment;filename=MyFile"

Command in my asp page, that prompts to either open or save this file. If
you choose to open it, it does not open it in the web browser window, and
opens the pdf file in new acrobat window. Not a neat solution, but at least
protects exposing my query string values to the end user, when they want to
save it.

Thanks again, and still looking for any comments in this regard

Easa




                -----Original Message-----
                From:   Pete Koolish [mailto:[EMAIL PROTECTED]
                Sent:   23 September 2003 21:48
                To:     [EMAIL PROTECTED]
                Subject:        RE: [PDF-Forms] PDF File Name: to be saved
via web browser


                PDF-Forms is a service provided by PDFzone.com |
http://www.pdfzone.com/
        
__________________________________________________________________

                One Solution to this problem, while not elegant, is to
create the file in a
                temporary server directory using the name that you want
(e.g. MyFile.pdf).
                After the file has been sent to the client it can then be
deleted.

                    Pete
                    The PDF Group

                -----Original Message-----
                From: [EMAIL PROTECTED]
                [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
                Sent: Monday, September 22, 2003 7:14 AM
                To: [EMAIL PROTECTED]
                Subject: [PDF-Forms] PDF File Name: to be saved via web
browser


                PDF-Forms is a service provided by PDFzone.com |
http://www.pdfzone.com/
        
__________________________________________________________________

                Here is a problem that seems simple but I tried everything I
could, and got
                nowhere. 

                I populate a PDF File by passing a query string into an ASP
file, and try to
                run some commands via this ASP file before opening this PDF
file
                automatically from this ASP file (When user clicks on the
link, the ASP file
                runs and presents the populated PDF form over the web on
client's PC). Now
                if I click on Save button, to save this PDF File, in the
save dialogue box,
                the default file name is the whole query string that I
passed to this ASP
                file (with all the variables and their values). 

                I want to get rid of this default file name, and tried to
use following ASP
                codes, but neither worked:

                1.      Response.AddHeader "Content-Disposition",
                "attachment;filename=MyFile"
                        In this way, a dialogue box opens and asks if I want
to save or Open
                the PDF file, which the default file name will be
"MyFile.pdf "
                        This is OK, but it is not a neat solution, as saving
or viewing the
                PDF File must pass through a dialogue box.
                2.      Response.AddHeader "Content-Disposition",
"inline;filename=MyFile"
                And surprisingly this does not work! And when I try to save
the PDF File, it
                still presents the query string in the filename box, and I
started to think
                this might be a problem with Acrobat 6.0 (I use Adobe
Acrobat 6.0 Pro)

                I would appreciate any help or comments

                Easa


                This e-mail is only for the use of the addressee. It may
contain information
                which is legally privileged, confidential and exempt  from
disclosure. If
                you are not the intended  recipient you must not copy,
distribute or
                disseminate this e-mail or attachments to any person other
than the
                addressee. If you receive this communication in error please
advise us by
                telephone at once. 
                AESSEAL plc Tel. +44 1709 369966 

                 Visit our Website at http://www.aesseal.com

                To change your subscription:
                http://www.pdfzone.com/discussions/lists-pdfforms.html





                To change your subscription:
                http://www.pdfzone.com/discussions/lists-pdfforms.html


                As this message has come from a source external to the AES
network, there is a possibility that it may contain harmful attachments. If
in  ANY doubt about the content or the identity of the sender, please
contact the IT Department.


This e-mail is only for the use of the addressee. It may contain information
which is legally privileged, confidential and exempt  from disclosure. If
you are not the intended  recipient you must not copy, distribute or
disseminate this e-mail or attachments to any person other than the
addressee. If you receive this communication in error please advise us by
telephone at once. 
AESSEAL plc Tel. +44 1709 369966 

 Visit our Website at http://www.aesseal.com

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

Reply via email to