You will need to fool the browser into believing that the document being sent to it (PDF in your case) is of a mime type which it can't handle. I don't think you can do it (easily) if the PDF is served directly from the disk, but if you are serving it from a result page of your Witango app file, it should be pretty easy by changing the http header (I adapted the code below from a previous Witango post by Eric Weidl).
<@PURGERESULTS> <@ASSIGN local$httpHeader VALUE="HTTP/1.0 200 OK<@CRLF>Content-Type: text/download<@CRLF>Content-disposition: file; filename="filename.pdf"<@CRLF><@SETCOOKIES><@USERREFERENCECOOKIE><@CRLF>"> @@local$yourPDFfileHere I did not test this, but it should work. A. > -----Original Message----- > From: rich Jasinski [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 11:28 AM > To: Multiple recipients of list witango-talk > Subject: Witango-Talk: pdf download > > > I need to put a link on a tango page that will give the user > the ability to > download a pdf file and not open it in the browser. Any ideas? > > rich > > ______________________________________________________________ > __________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to > [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
