Hi Scott,

Side note:
When I added the Content-Disposition 
It worked fine under IE 5.5 Win 98
But under XP Pro and IE 6 it forced a download without open option

This could be a setting

The below work, 
This one is without the Content-Disposition

<@assign local$encodeResults value="false"><@assign name="httpHeader"
scope="local" value="HTTP/1.0 200 OK<@char code=13><@char
code=10>MIME-Version: 1.0<@char code=13><@char code=10>Content-type:
application/msword<@char code=13><@char code=10>Content-Length: <@length
@@local$RTFData><@char code=13><@char code=10><@char code=13><@char
code=10>"><@purgeresults><@var local$RTFData ENCODING=NONE>

This one is with the Content-Disposition

<@assign local$encodeResults value="false"><@assign name="httpHeader"
scope="local" value="HTTP/1.0 200 OK<@char code=13><@char
code=10>MIME-Version: 1.0<@char code=13><@char code=10>Content-type:
application/msword<@char code=13><@char code=10>Content-Length: <@length
@@local$RTFData><@char code=13><@char code=10>Content-Disposition:
inline; filename=<@dq><@VAR local$theFileName><@dq><@char code=13><@char
code=10><@char code=13><@char code=10>"><@purgeresults><@var
local$RTFData ENCODING=NONE>



Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm 
Latest downloads & List Archives @ http://www.witango.ws


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott Cadillac
Sent: Wednesday, September 04, 2002 2:26 PM
To: Multiple recipients of list witango-talk
Subject: Re: Witango-Talk: httpHeader and RTF files

Hi Ben,

I can't recall exactly what Phil showed us the conference, but I can
tell
you that MSIE (I can't speak for other browsers) doesn't know which
client
software to launch for " application/rtf " content, so it forces the
file
to a download by default.

You just have to change your local$httpHeader Assignment to include "
Content-type: application/msword " to force MS Word to open the file.
Subsequently MS Word then automatically converts the RTF to Word format.

The same rule applies if you wanted to write a pretty HTML page and have
it
opened as a formatted Word document with pretty formatting - including
tables.

Note: you should also include the following in your local$httpHeader
Assignment:

Content-Disposition: inline; filename=<@dq><@VAR local$myFileName><@dq>

Hope this helps. Cheers....


----- Original Message -----
From: "Ben Johansen" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk"
<[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 3:05 PM
Subject: Witango-Talk: httpHeader and RTF files


> Hi,
>
>
>
> Anyone been able to bring up an .RTF file
>
> Using the header technique like the recent one for JPG
>
>
>
> At the conference Phil showed a technique for changing a RTF file and
> have witango replace the value.
>
> If anyone remembers it, could you email me off list.
>
>
>
> I have attached what I have so far
>
> It prompts me to download the taf file
>
>
>
> Ben Johansen - http://www.pcforge.com
> Authorized Witango Reseller
<http://www.pcforge.com/WiTangoGoodies.htm>
> http://www.pcforge.com/WitangoGoodies.htm
> Latest downloads & List Archives @  <http://www.witango.ws/>
> http://www.witango.ws
>
>
>
>

________________________________________________________________________
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

Reply via email to