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 (December 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 6 Dec 2001 08:10:03 +0100
Reply-To:     Van Dooren Wim <Wim.Van.Dooren@ARTESIASERVICES.BE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Van Dooren Wim <Wim.Van.Dooren@ARTESIASERVICES.BE>
Subject:      Re: Creating non-HTML output from IntrNet
Comments: To: max hauser <maxhauser@MAILCITY.COM>
Content-Type: multipart/mixed;

[multipart/alternative]


Where does your filename (weboutput.rtf) come from ?? I do something similar with csv, to start Excel, and it works fine with filename='temp.csv' ...

data _null_; file _webout; rc=appsrv_header('Content-type','application/msword'); rc=appsrv_header('Content-disposition','attachment;filename=temp.rtf'); run;

who knows this works ??

good luck anyway ...

Wim Van Doren Solid Partners Belgium

-----Original Message----- From: max hauser [mailto:maxhauser@MAILCITY.COM] Sent: 05 dec 2001 22:31 To: SAS-L@LISTSERV.UGA.EDU Subject: Creating non-HTML output from IntrNet

I have been trying all day to generate output from SAS/Intrnet using a very basic design

I have a web page with just a single submit button. Clicking on that button should execute a small SAS program that prints 100 observations of a single variable from a dataset. Everything works fine if I want to output an HTML page... but if I want RTF, PDF, or anything else, it does not work. All I get for RTF is an ASCII string of what the RTF files looks like... several hundred lines of this "brdrcf1\clbrdrl\brdrs\brdrw15\brdrcf1\cltxlrtb\clvertalt\". For PDF, I get the error message destination printer "" is not found. No output is generated.

I will list my code below.

Any help would be greatly appreciated, max

Here is the HTML code for the button:

<HTML> <BODY> <FORM ACTION="http://myserver/sasweb/cgi-bin/broker.exe?" METHOD=get> <INPUT TYPE=hidden name=_service value=default> <INPUT TYPE=hidden name=_program value=trydata.sas> <INPUT TYPE=submit VALUE=submit> </FORM> </BODY> </HTML>

Here is the SAS code for trydata.sas:

data _null_; file _webout; rc=appsrv_header('Content-type','application/msword'); rc=appsrv_header('Content-disposition','attachment; filename=weboutput.rtf'); run;

ods rtf file=_webout; options obs=100; proc print data=zzz.t2; var track; run;

ods rtf close; ods listing;


[text/html]


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