Hi Aseem, Try:
<@assign name="encodeResults" scope="local" value="false"> <@assign name="httpHeader" scope="local" value="Content-type: application/msword<@char code=13><@char code=10>Content-Length: <@var local$fileInfo[1,FileSize]><@char code=13><@char code=10>Content-Disposition: attachment; filename=<@dq>some-downloaded-document.doc<@dq><@char code=13><@char code=10><@USERREFERENCECOOKIE><@char code=13><@char code=10>"> Here's a version of the above, but with phyiscal line-breaks instead of "<@char code=13><@char code=10>" to help make it more readable: <@assign name="httpHeader" scope="local" value=" Content-type: application/msword Content-Length: <@var local$fileInfo[1,FileSize]> Content-Disposition: attachment; filename=<@dq>some-downloaded-document.doc<@dq> <@USERREFERENCECOOKIE> "> Obviously, you can place a variable for your download filename instead of "some-downloaded-document.doc" These properties are part of the HTTP standard and should work for all browsers. Hope this helps. Cheers.... Scott Cadillac http://xml-extra.net [EMAIL PROTECTED] http://witango.org [EMAIL PROTECTED] VP, Research and Development Plus International Corp. 604-469-6543 [EMAIL PROTECTED] http://www.plusinternational.com Vancouver, BC, Canada Does your company have an Enterprise Information Portal? Check out Salsa at www.plusinternational.com/flash/salsa.htm ----- Original Message ----- From: "Aseem Mal" <[EMAIL PROTECTED]> To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 12:14 PM Subject: Witango-Talk: Enforce Download Is there a way I can enforce downloading a given file (like a pdf document or Excel sheet), so that the user is forced to download it and not open the document withing the browser, like IE does for excel & pdf's. Someone, any ideas? -Aseem. ________________________________________________________________________ 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
