LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 18 Feb 2004 17:20:29 -0500
Reply-To:     Don Stanley <don_stanley@PARADISE.NET.NZ>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Don Stanley <don_stanley@PARADISE.NET.NZ>
Subject:      Re: ODS Results display raw RTF...

Jose

I'm sure the problem is your first line. Where does it come from. SAS does not generate that line by default.Isn't what you have added in their a header from an HTML document, not an RTF?

I create an RTF file and it opens ok in WORD. Then I paste your first line into the top of the RTF using NOTEPAD. Saving and opening in WORD displays the RAW RTF. As I said in my first post, a completely invalid header will generate this.

Don

On Wed, 18 Feb 2004 17:17:19 -0500, Droogendyk, Harry <Harry.Droogendyk@CIBC.COM> wrote:

>Jose: > >What code are you running where you have "my program"? > >What browser are you using? IE should open up the .rtf document, Netscape >may require a plug-in. > >The following code works for me: > >ods listing close; >%let RV=%sysfunc(appsrv_header(Content-type, application/msword)); >ods noproctitle; >ods rtf body=_webout; >proc print data=sashelp.class; >run; >ods rtf close; >ods listing; > > > -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On >Behalf Of Don Stanley > Sent: Wednesday, February 18, 2004 5:03 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: ODS Results display raw RTF... > > Are you saying you see the RTF when you open the document in >MS Word? If > so, please post your code that creates the RTF file. > > Opening in eg NOTEPAD, I would expect to see the raw RTF. > > Is the &RV variable somehow being written to the RTF header >part? If so, > perhaps it is not syntactically correct. Word will display >the raw RTF if > the document is completely unable to be interpreted by the >RTF converter. > > Don > > On Wed, 18 Feb 2004 16:39:39 -0500, Jose Santos ><j-santos@TAMU.EDU> wrote: > > >Hi: > >I am getting the rtf file generated by ODS as raw RTF... >displaying all the > >mark ups within the document as follows: > > > >Content-type: text/html Pragma: no-cache Content-type: >application/msword > >{\rtf1\ansi\ansicpg1252\uc1\deff0\deflang1033 \deflangfe1033 >{\fonttbl {\f1 > >\froman\fprq2\fcharset0 Times;} {\f2\fnil\fprq0\fcharset0 >;} }{\colortbl; > >\red0\green0\blue0; \red0\green0\blue255; >\red0\green255\blue255; \red0 > >\green255\blue0; \red255\green0\blue255; >\red255\green0\blue0; \red255 > >\green255\blue0; \red255\green255\blue255; >\red0\green0\blue128; \red0 > >\green128\blue128; \red0\green128\blue0; >\red128\green0\blue128; \red128 > >\green0\blue0; \red128\green128\blue0; >\red128\green128\blue128; \red192 > >.. > >.. > > > > > >Heres my program: > > > >ods listing close; > >%let RV=%sysfunc(appsrv_header(Content-type, >application/msword)); > >ods noproctitle; > >ods rtf body=_webout; > >my program... > >.. > >.. > >.. > >ods rtf close; > >ods listing; > > > >What am I doing wrong? > >Thanks for any help. > > > >Jose


Back to: Top of message | Previous page | Main SAS-L page