In my application I use _javascript_ to open a new windows and that pages redirects to the .pdf file which it just opens in the browser. Also if Adobe Acrobat Reader or more importantly the web add-in is not installed you will always get that prompt to download the file.
 
The code I used is below.
 
            This opens the new window:
 
            Dim URL As String
            URL = ""
            Response.Write("<script language=_javascript_>window.open('" & _
            URL & "')</script>")

And when the page opens it opens the .pdf file that is in the same directory:

             Response.Redirect("1.pdf")

Not the best method but it works for me.

---------------------------------------------------------------------------------------------------------------------------------------------------

 
 
Message: 6
Date: Tue, 26 Aug 2003 10:12:18 +0200 (MEST)
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [iText-questions] opening generated pdf + internet explorer (fwd)

hello everybody!

this is a pdf and no itext specific question, but probably someone knows
the trick...

i'm openening itext generated pdfs from a servlet ... and i want acrobat
reader to show up without  a "save as file" dialog. unfortunaltely even if
i deselect "allways ask for this type of file", the dialog shows up again.
is there some kind of registry-entry to stop this?

regards

randolph

-----------------------------------------------------------------------
di randolph kepplinger, mba
[EMAIL PROTECTED] / 0676-4071103

metamagix - better online solutions
favoritenstrasse 19 / 1040 wien / +43.1.9902804
buero: hackengasse 27 / 1150 wien / +43.1.9902804
http://www.metamagix.net

Reply via email to