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 (May 2006, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 30 May 2006 11:51:32 -0400
Reply-To:     Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject:      Re: SAS/intrnet sending output to excel

you should name the output dataset with something with .XLS at the end, no matter what the content is. That will open excel if you have .XLS associated with EXCEL.

On Sun, 28 May 2006 22:03:46 -0700, joshn <joshis@GMAIL.COM> wrote:

>Hi All, > >I am trying to get the output from a sas prog to open in excel, but >can't seem to change the http header content-type with: > >%let rc=%sysfunc(appsrv_header(content-type,application/vnd.ms-excel)); >%let >rc=%sysfunc(appsrv_header(content-disposition,%str(attachment;filename=myfile.xls))); > > >I have tried with proc template, but it still appears in IE. > > proc template; > define style outstyle; > parent=styles.minimal; > HTMLCONTENTTYPE= "application/vnd.ms-excel"; > end; > run; > >Here is my ODS statement: > >ods markup body=_webout(Dynamic) tagset=sas_web style=outstyle ; >(sas_web has custom excel xml tags.) > >/*output*/ > >ods markup close; > > >Should this be working? > >Thanks, > >Joshn


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